PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

Position

InputObject

Vector3

This property describes a DataType/Vector3|Vector3 positional value of this input.

For mouse and touch input, this is the screen position of the mouse/touch, described in the x and y components.

For the mouse wheel input, the z component describes whether the wheel was moved forward (1), backwards (-1), or not at all (0).

For Enum/KeyCode|KeyCode input, this indicate’s the position of the player’s Mouse.

#See also

  • InputObject/Delta
  • InputObject/KeyCode
  • InputObject/UserInputState
  • InputObject/UserInputType


Code Samples


Handling InputEnded

The following example demonstrates one of many usage examples of handling user input from InputEnded depending on its type.


Handling InputBegan

The following example demonstrates one of many usage examples of handling user input from InputBegan depending on its type.


Handling InputChanged

The following example demonstrates one of many usage examples of handling user input from InputChanged depending on its type.