Protected
constructorIf disabled, the Component will stop enacting its behavior.
When enabled, interaction events will be invoked only on the"closest" object, where order is defined by distance from camera and camera render order.
Readonly
isReturns whether the user is currently gazing at the object on wearable devices, and when the user is touching on mobile devices.
Readonly
isReturns whether the user is currently selecting and gazing at an object on wearable devices, or touching it on mobile devices.
Readonly
onOn mobile devices, this is triggered when the user releases their touch. On wearable devices, this is triggered when the user looks away from the current object.
Readonly
onOn mobile devices, this is triggered when the user starts touching. On wearable devices, this is triggered when the user gazes on the current object.
Readonly
onOn mobile devices, this is triggered when the user releases their touch. On wearable devices, this is triggered when the user stops touching the current object.
Readonly
onOn mobile devices, this is triggered when the user starts touching the current object. On wearable devices, this is triggered when the user touches the touchpad while focusing on an object.
Readonly
onTriggered when the user taps on the screen.
Readonly
onTriggered when a touch event ends.
Readonly
onTriggered when a touch position on the screen is moved.
Readonly
onTriggered when a touch event starts--either on the screen or on a touchpad. On wearables with touchpad, the coordinate returned are based on the touchpad and not the screen.
Readonly
onGets called when the user triggers the primary input on their device. For example touch on touch screens.
Readonly
sceneThe scene object this component is on.
Readonly
uniqueAdds a MeshVisual as a target for interaction detection.
Adds a touch type that this component will ignore.
Destroys the component.
Returns the minimum bounding box size used for detecting touches. Value range is from [0-1], relative to screen width.
Returns the SceneObject the component is attached to.
Returns the Transform this component is attached to.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Removes a MeshVisual as a target for interaction detection.
Sets the minimum bounding box size used for detecting touches. Value range is from [0-1], relative to screen width.
Enables invoking touch interactions with a BaseMeshVisual rendered to specific Camera.
Remarks
Sometimes touch events within lens may collide with Snapchat touch events. To avoid this use Touch Blocking.
See
Example