Skip to content

UI Progress

Updated

Progress bar or ring.

Type
comp-ui-progress
Script class
UIProgressComponent
Per entity
One
Version
1.1.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
margin
margin[] -16384 ≤ x ≤ 16384
max -1000000000 ≤ x ≤ 1000000000
min -1000000000 ≤ x ≤ 1000000000
padding
padding[] 0 ≤ x ≤ 16384
size 0 ≤ x ≤ 16384
value -1000000000 ≤ x ≤ 1000000000

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

  • UIProgress::change

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(UIProgressComponent);
if (component) log(component.props);
}