It is necessary that when you click (or another action, it does not matter) fps-controller could not move and twist the camera.

Where I can not find how to do it. In the game, the character opens the phone and he should stand still, but he can walk and rotate the camera, which hinders the game.

I tried to set the time to 0, but the character can still rotate the camera.

Tell me how to fix it.

Scripts on c #.

    1 answer 1

    1. Click on the object of the character
    2. In the character settings, block the rotation on the desired axes

    Or do the same for the camera. And then change the values ​​only programmatically. Should solve the issue.