Quantcast
Channel: Questions in topic: "javascript"
Viewing all articles
Browse latest Browse all 68

JSLib - Get a reference to the player

$
0
0
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)

Viewing all articles
Browse latest Browse all 68

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>