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

Java sticky instances of class com.mysql.jdbc.Field aggregating -