- Home /
Question by
Maharjan_Dinesh · Apr 21, 2020 at 03:12 PM ·
2d gamescript.
Communication from Native android app to Unity
Well, I am noobie to unity. I got a problem while loading scene from native android app to unity.
SceneLoader is my script in unity which contains:
void Start() { Debug.Log("Its in start");
}
public void LoadScene(string sceneName)
{
Debug.Log(sceneName );
SceneManager.LoadScene(sceneName);
}
And my andorid application LoadScene class contains: Intent intent = new Intent(LoadGameScene.this, UnityPlayerActivity.class); startActivity(intent); UnityPlayer.UnitySendMessage("SceneLoader", "LoadScene", "corsiScene");
But UnityPlayer.UnitySendMessage doesn't load method called "LoadScene". My scene name is "SceneLoad" where i attached script to empty game object.
Thanks!!## Heading ##
Comment