Billboard
Updated
Keeps the entity turned toward the camera, for sprites and labels.
- Type
comp-billboard- Script class
BillboardComponent- Per entity
- One
- Version
- 1.0.0
Read about it in Common components: what it does, how to use it from a script, and examples.
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
Name tags for every object in a groupA script gives every child of the Exhibits group a billboard UI Label with the child’s name, floating above it.
Drag to orbit the camera: the tags keep facing you. Scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(BillboardComponent); if (component) log(component.props);}