I have one requirement on unity3d, we have received code related to unity where we have ***.jsgz file under Release folder. Inside this .jsgz file there is another file **.js file where I have below function call.
Module.cwrap("SendMessageString","void",["string","string","string"])(gameObject,func,param)
I know that cwrap function is used to call C or C++ function from JavaScript but when I was checked syntax in google it have three parameters like below.
("SendMessageString","void",["string","string","string"])
But here in my code I can see there are another parameter passed in braces like below.
(gameObject,func,param)
I have googled but not getting any help, any one helps me to understand below call
Module.cwrap("SendMessageString","void",["string","string","string"])(gameObject,func,param)
Regards,
Ramesh
↧