Readonly
buttonmouse button 0 === LEFT, 1 === MIDDLE, 2 === RIGHT
Optional
distanceThe distance of the hit point from the origin
Readonly
eventthe original event
Optional
faceWho initiated this event
Optional
instanceThe instance ID of an object hit by a raycast (if a instanced object was hit)
Optional
intersectionThe three intersection
Optional
normalThe object-space normal of this event
The object this event hit or interacted with
Optional
pointThe world position of this event
the index of the used device
mouse and touch are always 0, controller is the gamepad index or XRController index
Returns the input target ray mode e.g. "screen" for 2D mouse and touch events
a combination of the pointerId + button to uniquely identify the exact input (e.g. LeftController:Button0 = 0, RightController:Button1 = 101)
true
when use()
has been called. Default: false
Generated using TypeDoc
This pointer event data object is passed to all event receivers that are currently active
It contains hit information if an object was hovered or clicked
If the event is received in onPointerDown or onPointerMove, you can call
setPointerCapture
to receive onPointerMove events even when the pointer has left the object until you callreleasePointerCapture
or when the pointerUp event happensYou can get additional information about the event or event source via the
event
property (of typeNEPointerEvent
)