Disable ALL user input

Hi! I was wondering if it’s possible to disable ALL (as in ALL) user input (keyboard, mouse, etc.) and then re-enable them all again.

What I’m trying to do:

I have an opening cutscene that’s playing realtime and I want to disable interaction with the game while the cutscene is live. I’ve tried just setting GameObject.active = false; but this makes the objects invisible.

Thanks! :smiley:

Create a wrapper around the Input class, and then call your input class rather than UnityEngine.Input. That way you can create a flag that will make your input class act as though no input has occurred.

disable the script that make the player move
public void Toogle_Input(bool IsAlive)
{
_user_Input.enabled = IsAlive;
}