How to freeze the rotation or the position on the camera transform?

How can i freeze the camera position or the rotation in the transform? Just like a rigidbody where you can freeze the rotations or the positions

I have searched about via google, but it doesnt really answer my question.

1 Answer

1

There are many ways to do that. 2 easy ways would be to enable/disable the script that does the transform and rotation. Another way is to wrap your transform/rotation script with a boolean variable to on/off when you want.