c# - Can not get com.unity3d.player.UnityPlayer class -


i want integrate android plugin unity3d, , call android function below:

androidjavaclass jc = new androidjavaclass("com.unity3d.player.unityplayer"); androidjavaobject jo = jc.getstatic<androidjavaobject>("currentactivity"); jo.call("startlocationservice"); 

the same unity3d official document's example code. in runtime, can not unityplayer's reference, can not static vairable: currentactivity, question: android plugin unity giving errors

could give help, first.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -