Hello, I'm new here :)
Currently working with a group of other students on a small adventure game as a school project, and none of us have any extensive Unity or game programming experience. It's a point-and-click game, so we have static cameras that follow our character via the SmoothLookAt script. The cameras never move in space, only rotate.
What we need is to find a small script that allows us to control how far a camera can rotate in any given direction, since we don't want the player to see the empty spaces at the edges of our scenes. :)
I'm pretty sure we can use Clamp to achieve this, but I'm not sure how to actually script it... Like I mentioned, we're all kind of new to this. :P Any help would be greatly appreciated.
Best regards, Simon.