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

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -