How to disable the responseHow to disable all the response from KeyEvent, MouseEvent?

How to disable all the response from KeyEvent, MouseEvent? I don’t want to the GameObject of the world to response any Event that Mouse and Key.

Well, I am not sure that you can disable the Keyboard input, but, why not set up a boolean such as

var CanPressKey : boolean = false ;

All keyboard calls need to have if ( CanPressKey == true && …, … ) .

Easy.

Same for as mouse, and if you have mouse scripts, disable them when needed.

Well, the problem is that you can’t really disable keypresses as far as I know. Unity 3D will always read Keyboard Input. You’re pretty much stuck with that, or just not checking for KeyInput at all during xx:xx time or however you have it setup. ( I am assuming cutscenes ) ?

PS: I have also searched quite a bit, and haven’t found anything on the topic.