Calling a null function is not a function error shown
If you are including an external javascript library into a Unity C# script, and not including the null function in the imported class, it will throw a null error.
Possible solution:
- Make sure that the functions you wish to call from C# are nested within the javascript external class you are importing into Unity. (Example with more information below)
Above you can see that the SDK function is the one being imported into Unity & acts like a class which contains the functions. So all functions used from in Unity needs to be added as nested functions inside the sdk
function.
send
is called from Unity & so has to be included inside the sdk function using the this
operator. It cannot be outside the sdk function.