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

VRC0018: The method specified for SendCustomEvent is not declared in the behaviour

PropertyValue
IDVRC0018
CategoryUnexpected
SeverityWarning
Runtime Version3.1.0 ~ latest

The method specified for SendCustomEvent is not declared in the behaviour

Example

Code with Diagnostic

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

Code with Fix

// NOT YET PROVIDED
VRC0018: The method specified for SendCustomEvent is not declared in the behaviour / Udon Analyzer / Natsuneko Laboratory Docs