API Reference

Class List

pc.ElementSelectEvent

Extends: pc.ElementInputEvent

Represents a XRInputSourceEvent fired on a pc.ElementComponent.

Summary

Properties

inputSource

The XR input source that this event was originally raised from.

Inherited

Properties

camera

The CameraComponent that this event was originally raised via.

element

The ElementComponent that this event was originally raised on.

event

The MouseEvent or TouchEvent that was originally raised.

Methods

stopPropagation

Stop propagation of the event to parent pc.ElementComponents.

Details

Constructor

ElementSelectEvent(event, element, camera, inputSource)

Create an instance of a pc.ElementSelectEvent.

Parameters

eventobject

The XRInputSourceEvent that was originally raised.

elementpc.ElementComponent

The ElementComponent that this event was originally raised on.

camerapc.CameraComponent

The CameraComponent that this event was originally raised via.

inputSourcepc.XrInputSource

The XR input source that this event was originally raised from.

Properties

pc.XrInputSourceinputSource

The XR input source that this event was originally raised from.

Inherited

Properties

pc.CameraComponentcamera

The CameraComponent that this event was originally raised via.

pc.ElementComponentelement

The ElementComponent that this event was originally raised on.

MouseEvent, TouchEventevent

The MouseEvent or TouchEvent that was originally raised.

Methods

stopPropagation()

Stop propagation of the event to parent pc.ElementComponents. This also stops propagation of the event to other event listeners of the original DOM Event.