Back to API Reference
Class
InputUtils
static
Backend-agnostic input reads. Calling Input directly throws an InvalidOperationException every frame when the project's active input handling is set to the Input System package only; these route to Keyboard.current / Mouse.current in that configuration, to legacy Input otherwise.
public static Vector2 MousePosition{ get }Pointer position in screen pixels, origin bottom-left (as mousePosition).
