Quantcast
Channel: Questions in topic: "dllimport"
Viewing all articles
Browse latest Browse all 160

WebGL javascript functions

$
0
0
I've added an [WebGL plugin](http://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html) "*.jslib" to my project to get access to some javascript methods. one of thoose methods: WindowLocationHash: function(){ return window.location.hash; }, I've "importet" it like this: `[DllImport("__Internal")] private static extern string WindowLocationHash()` but it returns always empty string. If i call the same javascript method from browser debug window i get the correct result. ___ Unity Personal 5.2.1f1

Viewing all articles
Browse latest Browse all 160

Trending Articles



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