This topic is not available in your language. Therefore, the original version (ja-jp) is displayed.
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