UdonSharp
UdonSharp copied to clipboard
[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)] does not reset sync modes
Describe the bug in detail:
When an UdonBehaviour component is set to None sync mode internally, changing the backing C# component to use [UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)]
does not change it back to Continuous or Manual sync modes (and thus, RPCs remain unusable).
Provide steps/code to reproduce the bug:
- Apply
[UdonBehaviourSyncMode(BehaviourSyncMode.None)]
to a component. - After U# applies this to the UdonBehaviour, change to
[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)]
Expected behavior: The sync mode should be reverted to Continuous. Instead, it remains None.