Skip to content

UI Selection Group

Updated

Makes toggles exclusive, like radio buttons.

Type
comp-ui-selection-group
Script class
UISelectionGroupComponent
Per entity
One
Version
1.0.0

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

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