Unity调安卓
AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); AndroidJavaObject jo = jc.GetStatic<AndroidJavaObject>("currentActivity"); jo.Call("具体方法名");
安卓调Unity
mUnityPlayer.UnitySendMessage("GameObject名", "函数名", "参数");
时间: 2024-10-03 22:47:11