- Home /
Changing Main Camera's Rotation about z axis
When I try to change MainCamera's Rotation about z axis on the inspector, it does not rotate, rather it's Rotation about y axis changes automatically. I tried doing same through script as well, unfortunately with the same result.
Please share the code you are using to change the z axis. I haven't heard of this behavior.
We're hungry for code, and did you check if you're using local or world space?
Answer by Klarax · Feb 04, 2014 at 10:40 AM
is this not the axis of the camera ? make sure the blue (z axis) is facing into the game. and then try.
if the blue is not forward then tis would result in this issue.
If its not, you could place an empty game object in scene and put camera inside it and then rotate the gameobject to the cam point forward again.
Your answer
Follow this Question
Related Questions
How to remove z axis control from script 1 Answer
Rect with Z instead of Y or similar alternatives 1 Answer
Special sprites ordering 1 Answer
Lock rotation of player 2 Answers
Smooth Follow script and z axis 3 Answers