Control Locker

Locks user's control
This feature allows you to lock a user's control, preventing them to moving, looking around, or interacting.
Add the ControlLocker component to a Canvas or an empty object. Make sure the object remains disabled and only enable it when the you need to lock the player's controls.
A canvas containing ControlLocker Component and is disabled.
This component is useful when displaying UI where the user should not be moving or interacting with anything else.