Mathf.Clamp Camera Rotation X Axis
Hey everyone. I am having an issue trying to clamp a cameras rotation so that they player can only look up and down so far. I have done it before but for the life of me have no idea what I am doing at the moment. I have tried many ways but none seem to work. I am using the Unity default first person controller. Any help would be amazing, Thanks.
Answer by Jessespike · Jan 22, 2016 at 08:46 PM
The FPS Controllers in Unity's Standard Assets have public Min/Max X properties that you can set. They are under the Mouse Look group.
Ah yes, thanks ahah. I thought I saw it before, god I am not on point at the moment.
Your answer
Follow this Question
Related Questions
c# - error CS0103: The name `hit' does not exist in the current context (cardboard switching) 1 Answer
Clamping when Zoom changes? 0 Answers
code error CS0119 field of view script 1 Answer
How to access camera Dont Clear in camera clear flags using c# 1 Answer
Move camera between canvases in UI menu 0 Answers