Lock first Person when using GUI

Hi,
I have a chest that can be opened by a first person character. When it is opened, the content is shown by the GUI and the mouse can be used to take things from the chest. But I don’t want the character to rotate when the mouse is used for the GUI. How can I get that?

Thanks

Try searching for pausing the game, you may want to pause the whole world (Skyrim) or not (Minecraft)

Just make it local or not depending on what you want.

You can try to put this:

Option 1:

When you open the chest:
Time.timeScale = 0.0;

When you close it:
Time.timeScale = 1.0;

Option 2:
var mouse : MouseLook;

When open the chest:
mouse.active=false;

When close the chest:
mouse.active=true;

Hope it helps ^^