Navigation
This page has not been translated yet. Showing the default language version.

VRC0020: The parameter type of method does not match the Nth argument of SendCustomNetworkEvent

Property Value
ID VRC0020
Category Unexpected
Severity Error
Runtime Version 3.8.1 ~ latest

The parameter type '{0} of method '{1}' does not match the {2}th argument ({3}) of SendCustomNetworkEvent

Example

Code with Diagnostic

using UdonSharp;

using VRC.SDK3.UdonNetworkCalling;
using VRC.Udon.Common.Interfaces;

class TestBehaviour : UdonSharpBehaviour
{
    public void TestMethod()
    {
        SendCustomNetworkEvent(NetworkEventTarget.All, "SomeMethod", (long)1);
                                                                     ~~~~~~~
    }

    public void SomeMethod(int value) { }
}

Code with Fix

// NOT YET PROVIDED