Search Unity

Question Conditional Orientation?

Discussion in 'Scripting' started by jGate99, Jul 12, 2020.

  1. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,945
    Hi there,

    I building a 2D uGUI game which will be portrait but dring gameplay it'll work in both orientations (landscaep/portrait).

    So how can i achieve that?

    Thanks
     
  2. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,945
  3. DaDonik

    DaDonik

    Joined:
    Jun 17, 2013
    Posts:
    258
    I googled it for you, a skill that will require less patience than waiting hours for answers.
    This should help.
     
    jGate99 likes this.
  4. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,945
    Ha Ha, thank you for your reply but this is not what im asking.
    What im asking is lock the device orientation on portrait for few scenes but on one scene enable auto ration. Currently its a player setting where either you can choose auto or portrait.
     
  5. DaDonik

    DaDonik

    Joined:
    Jun 17, 2013
    Posts:
    258
    Oh ok, seems like i got that wrong :D

    I have not done any mobile development, but this seems like it should allow you to change orientation at any time.
    Maybe someone else has actual experience with it...