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
| Property | Value | 
|---|---|
| ID | VRC0016 | 
| Category | Unexpected | 
| Severity | Warning | 
| Runtime Version | 3.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