Skip to content

Outline

Updated

Draws a colored, optionally animated outline around the entity.

Type
comp-outline
Script class
OutlineComponent
Per entity
One
Version
1.1.0

Read about it in Outline and silhouette: 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
animation "none"
color "#38bdf8"
speed 1 0.001 ≤ x ≤ 3600
thickness 4 0 ≤ x ≤ 128

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