We’re introducing Meta accounts in August 2022: a new way to log into VR devices that doesn’t require a Facebook account. Learn more


Allows a raycast gizmo to get data in the same event as the raycast codeblock.

Appearance in Composition Pane

Raycast will cause the referenced raycast gizmo to fire a ray in the direction of the gizmo.

The data gathered by the raycast can then be extracted with get raycast data. If raycasting at objects, the raycast gizmo must be configured to register hits on objects with a specific object tag; see the Behavior tab of the raycast gizmo’s properties panel and the object’s properties panel under Attributes > Tag.

Example 1: Laser pointer

The pointer event continues looping to constantly fire the raycast. When DidHitObject is true, we send the rayhit event to the object that was hit.

Next Up