Skip to content

Events

Updated

Components report what happens to them as events. EventType.<Source>.<Action> is the string '<Source>::<action>'; compare it with an event’s eventType. What each event carries is described on the page of the component that sends it.

on('crate', (e) => {
if (e.eventType === EventType.PhysicsCollider.CollisionEnter) log('hit', e.data);
});
Constant Value
EventType.AIAgent.Prompt AIAgent::prompt
EventType.AIAgent.Thinking AIAgent::thinking
EventType.AIAgent.Response AIAgent::response
EventType.AIAgent.Talking AIAgent::talking
EventType.AIAgent.Writing AIAgent::writing
EventType.AIAgent.Error AIAgent::error
EventType.AIAgent.Idle AIAgent::idle
EventType.AIAgent.Cancelled AIAgent::cancelled
EventType.AIAgent.TranslationRequested AIAgent::translation-requested
EventType.AIAgent.TranslationCompleted AIAgent::translation-completed
EventType.AIAgent.TranslationFailed AIAgent::translation-failed
EventType.AIAgent.TranslationCancelled AIAgent::translation-cancelled
EventType.AIAgent.TurnStarted AIAgent::turn-started
EventType.AIAgent.TurnCompleted AIAgent::turn-completed
EventType.AIAgent.TurnFailed AIAgent::turn-failed
EventType.AIAgent.TurnCancelled AIAgent::turn-cancelled
EventType.AIAgent.InstructionsUsed AIAgent::instructions-used
EventType.AIAgent.InstructionsUpdated AIAgent::instructions-updated
EventType.AIAgent.SkillUpdated AIAgent::skill-updated
EventType.AIAgent.ToolUpdated AIAgent::tool-updated
EventType.AIAgent.SkillRequested AIAgent::skill-requested
EventType.AIAgent.SkillLoaded AIAgent::skill-loaded
EventType.AIAgent.SkillLoadFailed AIAgent::skill-load-failed
EventType.AIAgent.ToolDefinitionLoaded AIAgent::tool-definition-loaded
EventType.AIAgent.ToolDefinitionFailed AIAgent::tool-definition-failed
EventType.AIAgent.ToolRequested AIAgent::tool-requested
EventType.AIAgent.ToolCompleted AIAgent::tool-completed
EventType.AIAgent.ToolFailed AIAgent::tool-failed
EventType.AIAgent.ToolCancelled AIAgent::tool-cancelled
EventType.AIAgent.MemoryReadRequested AIAgent::memory-read-requested
EventType.AIAgent.MemoryRead AIAgent::memory-read
EventType.AIAgent.MemoryReadFailed AIAgent::memory-read-failed
EventType.AIAgent.MemoryWriteRequested AIAgent::memory-write-requested
EventType.AIAgent.MemoryWritten AIAgent::memory-written
EventType.AIAgent.MemoryWriteFailed AIAgent::memory-write-failed
EventType.AIAgent.ContextUpdated AIAgent::context-updated
Constant Value
EventType.AIProximity.Enter AIProximity::enter
EventType.AIProximity.Exit AIProximity::exit

Sent by Ambient Light.

Constant Value
EventType.AmbientLight.Change AmbientLight::change

Sent by Animation Clip.

Constant Value
EventType.AnimationClip.Ready AnimationClip::ready
EventType.AnimationClip.Repeat AnimationClip::repeat
EventType.AnimationClip.Finished AnimationClip::finished

Sent by Animation Graph.

Constant Value
EventType.AnimationGraph.StateChange AnimationGraph::state-change

Sent by Animation Timeline.

Constant Value
EventType.AnimationTimeline.Play AnimationTimeline::play
EventType.AnimationTimeline.Stop AnimationTimeline::stop
EventType.AnimationTimeline.Repeat AnimationTimeline::repeat
EventType.AnimationTimeline.Finished AnimationTimeline::finished
EventType.AnimationTimeline.Signal AnimationTimeline::signal

Sent by Audio.

Constant Value
EventType.Audio.Ready Audio::ready
EventType.Audio.Error Audio::error
EventType.Audio.Play Audio::play
EventType.Audio.Pause Audio::pause
EventType.Audio.Stop Audio::stop
EventType.Audio.End Audio::end

Sent by Audio Ambisonic.

Constant Value
EventType.AudioAmbisonic.Ready AudioAmbisonic::ready
EventType.AudioAmbisonic.Error AudioAmbisonic::error
EventType.AudioAmbisonic.Play AudioAmbisonic::play
EventType.AudioAmbisonic.Pause AudioAmbisonic::pause
EventType.AudioAmbisonic.Stop AudioAmbisonic::stop
EventType.AudioAmbisonic.End AudioAmbisonic::end

Sent by Audio Positional.

Constant Value
EventType.AudioPositional.Ready AudioPositional::ready
EventType.AudioPositional.Error AudioPositional::error
EventType.AudioPositional.Play AudioPositional::play
EventType.AudioPositional.Pause AudioPositional::pause
EventType.AudioPositional.Stop AudioPositional::stop
EventType.AudioPositional.End AudioPositional::end

Sent by Audio Tone.

Constant Value
EventType.AudioTone.Ready AudioTone::ready
EventType.AudioTone.Play AudioTone::play
EventType.AudioTone.Stop AudioTone::stop

Sent by Audio Tone Positional.

Constant Value
EventType.AudioTonePositional.Ready AudioTonePositional::ready
EventType.AudioTonePositional.Play AudioTonePositional::play
EventType.AudioTonePositional.Stop AudioTonePositional::stop

Sent by Audio Zone.

Constant Value
EventType.AudioZone.Enter AudioZone::enter
EventType.AudioZone.Exit AudioZone::exit

Sent by Character Controller.

Constant Value
EventType.CharacterController.StateChange CharacterController::state-change
EventType.CharacterController.Arrive CharacterController::arrive

Sent by Collada.

Constant Value
EventType.Collada.Ready Collada::ready
EventType.Collada.Error Collada::error

Sent by Directional Light.

Constant Value
EventType.DirectionalLight.Change DirectionalLight::change

Sent by Enable.

Constant Value
EventType.Enable.Change Enable::change
Constant Value
EventType.FBX.Ready FBX::ready
EventType.FBX.Error FBX::error
Constant Value
EventType.GIF.Ready GIF::ready
EventType.GIF.Error GIF::error
EventType.GIF.Play GIF::play
EventType.GIF.Pause GIF::pause
EventType.GIF.End GIF::end
Constant Value
EventType.GLTF.Ready GLTF::ready
EventType.GLTF.Error GLTF::error

Sent by Grabbable.

Constant Value
EventType.Grabbable.Start Grabbable::start
EventType.Grabbable.End Grabbable::end
EventType.Grabbable.Hover Grabbable::hover
EventType.Grabbable.Leave Grabbable::leave

Sent by Handle.

Constant Value
EventType.Handle.Start Handle::start
EventType.Handle.End Handle::end
EventType.Handle.Hover Handle::hover
EventType.Handle.Leave Handle::leave

Sent by Hemisphere Light.

Constant Value
EventType.HemisphereLight.Change HemisphereLight::change

Sent by Image.

Constant Value
EventType.Image.Ready Image::ready
EventType.Image.Error Image::error

Sent by Kit Piece.

Constant Value
EventType.KitPiece.Ready KitPiece::ready
EventType.KitPiece.Error KitPiece::error
Constant Value
EventType.KTX2.Ready KTX2::ready
EventType.KTX2.Error KTX2::error

Sent by Layer.

Constant Value
EventType.Layer.Change Layer::change

Sent by Light Shadow.

Constant Value
EventType.LightShadow.Change LightShadow::change

Sent by Link.

Constant Value
EventType.Link.Open Link::open

Sent by Lock.

Constant Value
EventType.Lock.Change Lock::change

Sent by Lottie.

Constant Value
EventType.Lottie.Ready Lottie::ready
EventType.Lottie.Error Lottie::error
EventType.Lottie.Play Lottie::play
EventType.Lottie.Pause Lottie::pause
EventType.Lottie.End Lottie::end

Sent by Media Stream.

Constant Value
EventType.MediaStream.Connected MediaStream::connected
EventType.MediaStream.Disconnected MediaStream::disconnected

Sent by Motion Path Controller.

Constant Value
EventType.MotionPathController.End MotionPathController::end
Constant Value
EventType.NavMeshAgent.Arrive NavMeshAgent::arrive

Sent by Networkable.

Constant Value
EventType.Networkable.OwnershipChange Networkable::ownership-change
EventType.Networkable.Connect Networkable::connect
EventType.Networkable.Disconnect Networkable::disconnect
EventType.Networkable.Error Networkable::error
EventType.Networkable.PeerJoin Networkable::peer-join
EventType.Networkable.PeerLeave Networkable::peer-leave
Constant Value
EventType.OBJ.Ready OBJ::ready
EventType.OBJ.Error OBJ::error
Constant Value
EventType.PDF.Ready PDF::ready
EventType.PDF.Error PDF::error
EventType.PDF.Page PDF::page

Sent by Persistable.

Constant Value
EventType.Persistable.Change Persistable::change
EventType.Persistable.Cleared Persistable::cleared
EventType.Persistable.Error Persistable::error
Constant Value
EventType.PhysicsCollider.CollisionEnter PhysicsCollider::collision-enter
EventType.PhysicsCollider.CollisionExit PhysicsCollider::collision-exit
EventType.PhysicsCollider.IntersectionEnter PhysicsCollider::intersection-enter
EventType.PhysicsCollider.IntersectionExit PhysicsCollider::intersection-exit

Sent by Physics Rigid Body.

Constant Value
EventType.PhysicsRigidBody.Sleep PhysicsRigidBody::sleep
EventType.PhysicsRigidBody.Wake PhysicsRigidBody::wake

Sent by Pivotable.

Constant Value
EventType.Pivotable.Start Pivotable::start
EventType.Pivotable.End Pivotable::end
EventType.Pivotable.Hover Pivotable::hover
EventType.Pivotable.Leave Pivotable::leave

Sent by Point Light.

Constant Value
EventType.PointLight.Change PointLight::change

Sent by Rect Area Light.

Constant Value
EventType.RectAreaLight.Change RectAreaLight::change

Sent by Screen Gamepad.

Constant Value
EventType.ScreenGamepad.Press ScreenGamepad::press
EventType.ScreenGamepad.Release ScreenGamepad::release

Sent by Selectable.

Constant Value
EventType.Selectable.Select Selectable::select
EventType.Selectable.Deselect Selectable::deselect
EventType.Selectable.Change Selectable::change
EventType.Selectable.Hover Selectable::hover
EventType.Selectable.Leave Selectable::leave

Sent by Shadow.

Constant Value
EventType.Shadow.Change Shadow::change

Sent by Snappable.

Constant Value
EventType.Snappable.Snap Snappable::snap
EventType.Snappable.Unsnap Snappable::unsnap

Sent by Snap Zone.

Constant Value
EventType.SnapZone.Snap SnapZone::snap
EventType.SnapZone.Unsnap SnapZone::unsnap
EventType.SnapZone.Change SnapZone::change
EventType.SnapZone.Resize SnapZone::resize

Sent by Spawn Point.

Constant Value
EventType.SpawnPoint.Place SpawnPoint::place

Sent by Spot Light.

Constant Value
EventType.SpotLight.Change SpotLight::change

Sent by Spot Point.

Constant Value
EventType.SpotPoint.Occupied SpotPoint::occupied
EventType.SpotPoint.Release SpotPoint::release

Sent by Steering Agent.

Constant Value
EventType.SteeringAgent.Arrive SteeringAgent::arrive
Constant Value
EventType.SVG.Ready SVG::ready
EventType.SVG.Error SVG::error

Sent by Teleport.

Constant Value
EventType.Teleport.Start Teleport::start
EventType.Teleport.Aim Teleport::aim
EventType.Teleport.Arrive Teleport::arrive
EventType.Teleport.Cancel Teleport::cancel
EventType.Teleport.End Teleport::end

Sent by Transform.

Constant Value
EventType.Transform.PositionChange Transform::position-change
EventType.Transform.RotationChange Transform::rotation-change
EventType.Transform.ScaleChange Transform::scale-change
EventType.Transform.Change Transform::change

Sent by Travel Point.

Constant Value
EventType.TravelPoint.Enter TravelPoint::enter
EventType.TravelPoint.Arrive TravelPoint::arrive
Constant Value
EventType.UIAvatar.Press UIAvatar::press
Constant Value
EventType.UIButton.Press UIButton::press
Constant Value
EventType.UICheckbox.Change UICheckbox::change
Constant Value
EventType.UIDrawing.PointerDown UIDrawing::pointer-down
EventType.UIDrawing.PointerMove UIDrawing::pointer-move
EventType.UIDrawing.PointerUp UIDrawing::pointer-up
EventType.UIDrawing.PointerHover UIDrawing::pointer-hover
EventType.UIDrawing.PointerLeave UIDrawing::pointer-leave
Constant Value
EventType.UIImage.Press UIImage::press
EventType.UIImage.Ready UIImage::ready
EventType.UIImage.Error UIImage::error
Constant Value
EventType.UIInput.Change UIInput::change
EventType.UIInput.Submit UIInput::submit
EventType.UIInput.Focus UIInput::focus
EventType.UIInput.Blur UIInput::blur
Constant Value
EventType.UIKeyboard.Press UIKeyboard::press
EventType.UIKeyboard.Show UIKeyboard::show
EventType.UIKeyboard.Hide UIKeyboard::hide
Constant Value
EventType.UILabel.Press UILabel::press
Constant Value
EventType.UIList.Select UIList::select
EventType.UIList.Deselect UIList::deselect
Constant Value
EventType.UIListItem.Select UIListItem::select
Constant Value
EventType.UIMenu.Open UIMenu::open
EventType.UIMenu.Close UIMenu::close
Constant Value
EventType.UIMenuItem.Select UIMenuItem::select
Constant Value
EventType.UINotification.Open UINotification::open
EventType.UINotification.Action UINotification::action
EventType.UINotification.Dismiss UINotification::dismiss
Constant Value
EventType.UIProgress.Change UIProgress::change
Constant Value
EventType.UISlider.Change UISlider::change
EventType.UISlider.ChangeEnd UISlider::change-end
Constant Value
EventType.UISwitch.Change UISwitch::change
Constant Value
EventType.UIToggleButton.Change UIToggleButton::change
Constant Value
EventType.UITooltip.Show UITooltip::show
EventType.UITooltip.Hide UITooltip::hide
Constant Value
EventType.UIVideo.Ready UIVideo::ready
EventType.UIVideo.Error UIVideo::error
EventType.UIVideo.Play UIVideo::play
EventType.UIVideo.Pause UIVideo::pause
EventType.UIVideo.Stop UIVideo::stop
EventType.UIVideo.End UIVideo::end
Constant Value
EventType.USDZ.Ready USDZ::ready
EventType.USDZ.Error USDZ::error

Sent by Video.

Constant Value
EventType.Video.Ready Video::ready
EventType.Video.Error Video::error
EventType.Video.Play Video::play
EventType.Video.Pause Video::pause
EventType.Video.Stop Video::stop
EventType.Video.End Video::end

Sent by Water Volume.

Constant Value
EventType.WaterVolume.Enter WaterVolume::enter
EventType.WaterVolume.Submerge WaterVolume::submerge
EventType.WaterVolume.Emerge WaterVolume::emerge
EventType.WaterVolume.Exit WaterVolume::exit
Constant Value
EventType.XRAnchor.Tracked XRAnchor::tracked
EventType.XRAnchor.Lost XRAnchor::lost
EventType.XRAnchor.Restored XRAnchor::restored
Constant Value
EventType.XRMeshes.Detected XRMeshes::detected
EventType.XRMeshes.Updated XRMeshes::updated
EventType.XRMeshes.Lost XRMeshes::lost
Constant Value
EventType.XROrigin.Recenter XROrigin::recenter
EventType.XROrigin.Reset XROrigin::reset
Constant Value
EventType.XRPlanes.Detected XRPlanes::detected
EventType.XRPlanes.Updated XRPlanes::updated
EventType.XRPlanes.Lost XRPlanes::lost