Skip to content

Fire

Updated

A particle flame; many fires share one draw call.

Type
comp-fire
Script class
FireComponent
Per entity
One
Version
1.2.0

Read about it in Fire: 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
height 0 ≤ x ≤ 100
particleCount 0 ≤ x ≤ 2048, integer
radius 0 ≤ x ≤ 100
seed
size 0 ≤ x ≤ 10
speed -10 ≤ x ≤ 10

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