Enum InputSystemUIInputModule.CursorLockBehavior
Controls the origin point of raycasts when the cursor is locked.
Namespace: UnityEngine.InputSystem.UI
Assembly: Unity.InputSystem.dll
Syntax
public enum InputSystemUIInputModule.CursorLockBehavior
Fields
Name | Description |
---|---|
OutsideScreen | The internal pointer position will be set to -1, -1. This short-circuits the raycasting logic so no objects will be intersected. This is the default setting. |
ScreenCenter | Raycasts will originate from the center of the screen. This mode can be useful for example to check in pointer-driven FPS games if the player is looking at some world-space object that implements the UnityEngine.EventSystems.IPointerEnterHandler and UnityEngine.EventSystems.IPointerExitHandler interfaces. |