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

How to? Change camera position and rotation after pressed button

Discussion in 'Editor & General Support' started by bart87, Sep 16, 2016.

  1. bart87

    bart87

    Joined:
    Sep 10, 2016
    Posts:
    12
    Hi

    I would like to ask you guys how to do that.

    I would like to change Camera postion and rotation so

    Position: x:0, y:2.37, z:-11.26
    Rotation: x:0, y:0, z:0

    when the button is pressed change position and rotation to:

    Position: x:0, y:8, z:0.5
    Rotation: x:90, y:0, z:0

    when pressed again, change postion and rotation to previous one.
     
  2. bart87

    bart87

    Joined:
    Sep 10, 2016
    Posts:
    12
    Lads. I need any help

    I know its easy stuff but I am a bit newbie here. Would be great if anyone can give me a hand.

    Thank you