Skip to content

UI Render Scene

Updated

The small 3D world a UI Render View shows.

Type
comp-ui-render-scene
Script class
UIRenderSceneComponent
Per entity
One
Version
1.1.0

Read about it in Content: 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
distance 0.001 ≤ x ≤ 1000
fov 1 ≤ x ≤ 179

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