
Mirror Engine API / ElementSelectEvent
Class: ElementSelectEvent
Represents a XRInputSourceEvent fired on a ElementComponent.
Extends
Constructors
new ElementSelectEvent()
new ElementSelectEvent(
event: XRInputSourceEvent,
element: ElementComponent,
camera: CameraComponent,
inputSource: XrInputSource): ElementSelectEvent
Create an instance of a ElementSelectEvent.
Parameters
event
XRInputSourceEvent
The XRInputSourceEvent that was originally raised.
element
The ElementComponent that this event was originally raised on.
camera
The CameraComponent that this event was originally raised via.
inputSource
XrInputSource
The XR input source that this event was originally raised from.
Returns
Overrides
Properties
camera
camera: CameraComponent
The CameraComponent that this event was originally raised via.
Inherited from
element
element: ElementComponent
The ElementComponent that this event was originally raised on.
Inherited from
event
event: MouseEvent | TouchEvent
MouseEvent or TouchEvent that was originally raised.
Inherited from
inputSource
inputSource: XrInputSource
The XR input source that this event was originally raised from.
Methods
stopPropagation()
stopPropagation(): void
Stop propagation of the event to parent ElementComponents. This also stops propagation of the event to other event listeners of the original DOM Event.
Returns
void