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.
Properties
Section titled “Properties”The props the runtime declares for this component, with their defaults and accepted ranges.
| Prop | Default | Range |
|---|---|---|
distance |
0. |
|
fov |
1 ≤ x ≤ 179 |
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
A turntable previewA character preview inside a panel: a UI Render View shows a UI Render Scene with its own camera and lights, and a Behavior turns the model in it.
Watch Amelia turn inside the panel: she lives in the render scene, lit by its own lights. Drag outside the panel to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(UIRenderSceneComponent); if (component) log(component.props);}