This topic is not available in your language. Therefore, the original version (ja-jp) is displayed.

VRC0010: Cannot sync variable because behaviour is set to NoVariableSync, change the behaviour sync mode to sync variables

PropertyValue
IDVRC0010
CategoryUnexpected
SeverityWarning
Runtime Version3.1.0 ~ latest

Cannot sync variable because behaviour is set to NoVariableSync, change the behaviour sync mode to sync variables

Example

Code with Diagnostic

using UdonSharp;
 
using VRC.Udon.Common.Interfaces;
 
[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)]
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class TestBehaviour0 : UdonSharpBehaviour
{
    [UdonSynced(UdonSyncMode.Smooth)]
    private int _var;
}

Code with Fix

// NOT YET PROVIDED
VRC0010: Cannot sync variable because behaviour is set to NoVariableSync, change the behaviour sync mode to sync variables / Udon Analyzer / Natsuneko Laboratory Docs