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

VRC0016: The method specified for SendCustomEvent must be public

PropertyValue
IDVRC0016
CategoryUnexpected
SeverityWarning
Runtime Version3.1.0 ~ latest

The method specified for SendCustomEvent must be public

Example

Code with Diagnostic

using UdonSharp;
 
class TestBehaviour0 : UdonSharpBehaviour
{
    private TestBehaviour1 _behaviour;
 
    public override void Interact()
    {
        _behaviour.SendCustomEvent("TestMethod");
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    }
}
 
class TestBehaviour1 : UdonSharpBehaviour
{
    private void TestMethod() {}
}

Code with Fix

// NOT YET PROVIDED
VRC0016: The method specified for SendCustomEvent must be public / Udon Analyzer / Natsuneko Laboratory Docs