Events

Common Events:

  • onActivate
  • onPressed
  • onLongPress
  • onRelease
  • onHoverEnter
  • onHoverExit
  • onHoverMove
  • onEnabled
  • onDisabled
  • onFocusGained
  • onFocusLost
  • onFocusInput
  • onUpdate
  • onDeleted
  • onEvent
  • onUpdateLoop

supported by all of the following components:

  • Button
  • CircleConfirmation
  • ColorPicker
  • DatePicker
  • Dialog
  • DropdownList
  • GridLayout
  • Image
  • Line
  • LinearLayout
  • ListView
  • ListViewItem
  • PageView
  • Panel
  • PortalIcon
  • ProgressBar
  • RectLayout
  • ScrollBar
  • ScrollView
  • Slider
  • Spinner
  • Tab
  • Text
  • TextEdit
  • TimePicker
  • Toggle
  • ToggleGroup
  • View
  • WebView

The following components support onEvent and onUpdateLoop events only:

  • Audio
  • Content
  • Light
  • Model
  • Quad
  • Video

Events per component and the provided event data type:

ComponentEvent NameEvent Data Type
UI componentonActivateUiEventData
onClickUiEventData
onPressUiEventData
onLongPressUiEventData
onReleaseUiEventData
onHoverEnterUiEventData
onHoverExitUiEventData
onHoverMoveUiEventData
onEnabledUiEventData
onDisabledUiEventData
onFocusGainedUiEventData
onFocusLostUiEventData
onFocusInputUiEventData
onUpdateUiEventData
onDeleteUiEventData
onEvent*based on the event
onUpdateLoopnumber
TextEditonCharacterEnterTextEditEventData
onKeyboardEventTextEditEventData
onTextChangedTextEditEventData
SlideronSliderChangedSliderEventData
ListViewonScrollChangedScrollViewEventData
ScrollViewonScrollChangedScrollViewEventData
ProgressBaronProgressBarChangedProgressBarEventData
DropDownListonListVisibilityChangedDropDownListEventData
onSelectionChangedDropDownListEventData
ToggleonToggleChangedToggleEventData
PanelonCursorEdgeUiEventData
onCursorOffEdgeUiEventData
onPanelEnterUiEventData
onPanelExitUiEventData
DialogonCancelUiEventData
onConfirmUiEventData
ColorPickeronColorCanceledColorPickerEventData
onColorConfirmedColorPickerEventData
onColorChangedColorPickerEventData
TimePickeronTimeChangedTimePickerEventData
onTimeConfirmedTimePickerEventData
DatePickeronDateChangedDatePickerEventData
onDateConfirmedDatePickerEventData
CircleConfirmationonConfirmationCanceledUiEventData
onConfirmationCompleteUiEventData
onConfirmationUpdateUiEventData

Event data types and their properties

ServerEvent extends EventData

  • PrismId
  • isInputEvent

InputEventData extends ServerEvent

  • DeviceId
  • EventSource
  • EventType

EyeTrackingEventData extends ServerEvent

  • EyeTrackingFixationConfidence
  • EyeTrackingFixationPosition
  • EyeTrackingLeftEyeBlinkState
  • EyeTrackingLeftEyeConfidence
  • EyeTrackingLeftEyePosition
  • EyeTrackingLeftEyeRotation
  • EyeTrackingRightEyeBlinkState
  • EyeTrackingRightEyeConfidence
  • EyeTrackingRightEyePosition
  • EyeTrackingRightEyeRotation
  • RemainingTimeAtUncomfortableDepth

NodeEventData extends EventData

  • AABB
  • AnchorPosition
  • ChildCount
  • CurrentPrismTransform
  • CurrentWorldTransform
  • CursorHoverState
  • LocalAABB
  • LocalTransform
  • Name
  • NodeId
  • ParentedBoneName
  • PrismId

TransformNodeEventData extends NodeEventData

  • LocalPosition
  • LocalRotation
  • LocalScale
  • PrismPosition
  • WorldPosition

UiEventData extends TransformNodeEventData (in development)

  • Alignment
  • Enabled
  • EventPassThrough
  • EventSoundID
  • GravityWellEnabled
  • GravityWellProperties
  • RenderingLaye