UdonSharp Inspector Fails to Update After Successful Compile on Clean Installations
needs more information
TheNotter
On a completely fresh installation of the VRChat development environment (VCC, Unity, VS) on multiple, independent machines, the Unity Editor fails to correctly display UdonSharp script components. Although the UdonSharp compiler reports a successful compilation in the console, the Inspector window does not update to show the script's public variables. This makes it impossible to assign scene objects to script variables, fundamentally blocking the standard UdonSharp development workflow.
Log In
Dexvoid
needs more information
Dexvoid
Hello, thanks for your report and the very detailed repro steps.
I'd like to clarify the issue you're having:
- The Udon Sharp Program Asset file (.asset) contains your compiled Udon assembly and is not a C# source file, so you can't edit it in a code editor like Visual Studio. This file is normally created alongside an associated C# source file, which is what you'd open and edit in VS. If you use the menu option Create->U# Script instead of Create->VRChat->Udon->Udon C# Program Asset, you can have the SDK set up both files for you, as an alternative to the manual process of setting up each file one at a time.
- To my knowledge, Udon Sharp Program Assets have never accepted edit-time default references for serialized fields. Are you looking for the default references list on the C# source asset instead, shown in the first attached screenshot? If not, can you please give an SDK version where these fields were listed by the U# program asset?
By adding an UdonBehaviour component to a game object in the scene and adding this newly created script to it, I am seeing the serialized value as expected per the second attached screenshot.