Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved Changing the camera position when changing the screen orientation.

Discussion in 'Visual Scripting' started by Kudos_Heavy_Debauchenery, Sep 6, 2023.

  1. Kudos_Heavy_Debauchenery

    Kudos_Heavy_Debauchenery

    Joined:
    Dec 12, 2022
    Posts:
    12
    Hello everyone, I ask for advice:
    I need to change the camera position when changing the orientation of the screen, I did a check from the orientation list and GetOrientation, but the Equal node does not compare these types of data.
    Screenshot 2023-09-06 145424.png Please tell me how to do it right.
    Thank you in advance!
     
  2. S2NX7

    S2NX7

    Joined:
    Aug 17, 2021
    Posts:
    26
    maybe you can use switch on enum
     
  3. S2NX7

    S2NX7

    Joined:
    Aug 17, 2021
    Posts:
    26
    Like this
     

    Attached Files:

  4. Kudos_Heavy_Debauchenery

    Kudos_Heavy_Debauchenery

    Joined:
    Dec 12, 2022
    Posts:
    12
    Thanks a lot, everything works!
     
    S2NX7 likes this.