Freitag, 14. Februar 2020

Unity 3d - get and set screen resolution

get:

          Debug.Log("Screen Width : " + Screen.width);
    Debug.Log("Screen Height : " + Screen.height);

set:

    Screen.SetResolution(1600,900,false);

...where 1600 is the width, 900 the height and finally a boolean to signalize the fullscreen mode.

0 Kommentare:

Kommentar posten

Abonnieren Kommentare zum Post [Atom]

<< Startseite