--------------------------------------------
WEBSITE | WEBGL DEMO
--------------------------------------------
The Call C# Method System for WebGL provides a way to call your methods from the browser's native JavaScript in WebGL builds, and obtain the method's response.
The system is thus an extension over the standard
Unity's SendMessage capabilities, which do not let you get the return value or call methods with more than one parameter.
The Call C# Method System for WebGL is designed to be simple to use but robust. You can call a Unity-side C# method from the browser's native JavaScript through a relatively simple callMethodcall.
The main advantages that the Call C# Method System for WebGL has over Unity's SendMessage are that:
- You can call methods with more than one parameter.
- You can receive the return value of the method you call.