Skip to content

UI List

Updated

Scrolling list of selectable rows.

Type
comp-ui-list
Script class
UIListComponent
Per entity
One
Version
1.0.0

Read about it in Controls: what it does, how to use it from a script, and examples.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
scrollbarWidth 0 ≤ x ≤ 16384

Sent to the entity’s Signal Emitter as { entityId, eventType, data }. Compare eventType with the EventType constants.

  • UIList::select
  • UIList::deselect

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(UIListComponent);
if (component) log(component.props);
}