Skip to content

UI Render View

Updated

Shows a small 3D scene inside the UI.

Type
comp-ui-render-view
Script class
UIRenderViewComponent
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
borderRadius
borderRadius[] 0 ≤ x ≤ 16384
height 0.001 ≤ x ≤ 16384
margin
margin[] -16384 ≤ x ≤ 16384
padding
padding[] 0 ≤ x ≤ 16384
width 0.001 ≤ x ≤ 16384

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