JSLib - Get a reference to the player
Hi!
I am developing Assets with WebGL support which utilize the jslib feature. To send data to the C# counterparts of the asset, I need to use "sendMessage" on the unity player reference.
Is there any way from JSlib to get a reference to the player without modifying the - or requiring a specific - WebGL template? (For example one can not rely on the object being called "unityInstance" especially for unity 2020 templates this is no longer the default (and before it might have been changed by the template/dev)
Your answer
Follow this Question
Related Questions
WebGL & denying browser script access to game methods? 0 Answers
What's the proper way to make my game listen to a browser's javascript event? 0 Answers
EditorUtility.OpenFilePanel for UnityWebGL (Runtime) 1 Answer
What is the best way to write Serialized Save Data to a file using WebGL 1 Answer
Unity WebGL build - HTML.asm.framework.js errors. I need help solving. 1 Answer