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

VRC0021: Unable to send network event to UdonBehaviour with SyncType 'None'

PropertyValue
IDVRC0021
CategoryUnexpected
SeverityWarning
Runtime Version3.1.0 ~ latest

Unable to send network event to UdonBehaviour '{0}' with SyncType 'None'

Example

Code with Diagnostic

using UdonSharp;
 
using VRC.Udon.Common.Interfaces;
 
class TestBehaviour1 : UdonSharpBehaviour
{
    private TestBehaviour2 _other;
 
    public void SomeMethod()
    {
        _other.SendCustomNetworkEvent(NetworkEventTarget.All, "SomeMethod");
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    }
}
 
[UdonBehaviourSyncMode(BehaviourSyncMode.None)]
class TestBehaviour2 : UdonSharpBehaviour
{
    public void SomeMethod() {}
}

Code with Fix

// NOT YET PROVIDED
VRC0021: Unable to send network event to UdonBehaviour with SyncType 'None' / Udon Analyzer / Natsuneko Laboratory Docs