Unity - Multiple-display (IPad + Monitor)

I'm developing an app in Unity for the ios platform. I need to see in the IPad in one way and in the monitor / TV to see in another way, that is, 2 cameras pointing to different areas that communicate with each other through the scripts.

I have been looking at the documentation and it says that the option of several displays is available only for desktop apps (Windows, Linux, Mac).

My question is:

Is there any way to achieve it in 2 different ways on 2 devices with different screen sizes?

Thank you,

1 answer

  • answered 2018-11-08 09:31 Immorality

    If I understand your question correctly, you should consider the following:

    I'd suggest making three scenes. One scene you decorate for your Monitor, the other for your Ipad. The other scene will be your "start" scene. In this scene, create an empty gameobject and create and attach the following script.

    public class ApplicationManager : MonoBehaviour
    {
        void Awake()
        {
            if(SystemInfo.deviceModel.Contains("iPad"))
            {
                SceneManager.LoadScene(2);
            }
            else
            {
                SceneManager.LoadScene(1);
            }
        }
    }
    

    That way, if you start the app on any ipad, it will load the Ipad scene (as long as the scene is marked with index 2 in your build index)