Search Unity

Changing Display in game with Unity 2019

Discussion in 'Scripting' started by _met44, Jun 8, 2019.

  1. _met44

    _met44

    Joined:
    Jun 1, 2013
    Posts:
    633
    Hey everyone,

    So the resolution dialog is going to be removed soon, that's fine by me. But how do we let player choose which screen the game should be on ?

    Went through everything google knew on the topic, tried in my game and nothing seems to work anymore. (it is mentionned in several place that the good old trick of setting a magic value in player prefs no longer works)

    Are we seriously back to using win32 APIs for basic game features ? XD
     

    Attached Files:

  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
  3. _met44

    _met44

    Joined:
    Jun 1, 2013
    Posts:
    633
    Hey thanks a lot for the reply !!

    Hmm I thought that was for multi display purposes, doc doesn't mention it can move a fullscreen windows elsewhere... Worth a try but that a hell of a poorly put doc if it does work.

    How does it behave when loading a new scene with a different camera ? do you see the window pop on another screen before your scripts can set back the target display ?