UdonSharp icon indicating copy to clipboard operation
UdonSharp copied to clipboard

[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)] does not reset sync modes

Open bdunderscore opened this issue 3 years ago • 0 comments

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:

  1. Apply [UdonBehaviourSyncMode(BehaviourSyncMode.None)] to a component.
  2. 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.

bdunderscore avatar Sep 16 '21 01:09 bdunderscore