This component allows the cursor to hide/unhide based on messages sent from other components, or just when the player clicks on the game. By default, it hides the cursor when the player moves with WASD and unlocks when the player presses [ESCAPE] or [CTRL]
KeyCode[]
unLockKeysList of keys that unlock the mouse
Default value: new KeyCode[] {KeyCode.Escape, KeyCode.LeftControl}
KeyCode[]
lockKeysList of keys that lock the mouse
Default value: new KeyCode[] {KeyCode.W, KeyCode.A, KeyCode.S, KeyCode.D}
Locks and hides the cursor when receiving a message from a message sender.
Unlocks and reveals the cursor when receiving a message from a message sender.
KeyCode[]
unLockKeysList of keys that unlock the mouse
Default value: new KeyCode[] {KeyCode.Escape, KeyCode.LeftControl}
KeyCode[]
lockKeysList of keys that lock the mouse
Default value: new KeyCode[] {KeyCode.W, KeyCode.A, KeyCode.S, KeyCode.D}
Locks and hides the cursor when receiving a message from a message sender.
Unlocks and reveals the cursor when receiving a message from a message sender.