Skip to content

Gameplay components

Every field below is derived from the engine’s own component registry — the same one the editor’s Details panel reads — so the types and defaults here are the values you get when you add the component, and they cannot drift from the code. The prose that explains how to use each one lives in the guides linked per entry.

AudioListener

The ear spatial audio is mixed relative to — usually the camera or the player.

Explained in assets/audio.

FieldTypeDefaultNotes
enabledbooleantrue

AudioSource

Declarative playback attached to an entity, attenuated by distance when spatial.

Explained in assets/audio.

FieldTypeDefaultNotes
clipAsset<audio>none
busstring"sfx"
volumenumber1
pitchnumber1
loopbooleanfalse
playOnAwakebooleanfalse
spatialbooleanfalse
minDistancenumber100
maxDistancenumber1000
attenuationModelnumber1
rolloffnumber1
prioritynumber0
enabledbooleantrue

BehaviorTreeAgent

Ticks a behavior tree asset against a blackboard, calling registry actions at its leaves.

Explained in gameplay/ai/behavior-trees.

FieldTypeDefaultNotes
btAsset<behaviortree>none
statusstringemptyLast root status (runtime, read-only).

EventBinding

Wires an event on this entity to named actions — gameplay authored in the inspector, with no script.

Explained in scripting/events.

FieldTypeDefaultNotes
rowsarrayempty

Steers an entity along a path found on the navigation grid.

Explained in gameplay/ai/navigation.

FieldTypeDefaultNotes
speednumber120 Range ≥ 0.
radiusnumber0 Range ≥ 0.
arriveRadiusnumber6 Range ≥ 0.
repathIntervalnumber0.5Replan cadence while moving; 0 = only when the target changes. Range ≥ 0.
hasTargetbooleanfalse
targetXnumber0
targetYnumber0
arrivedbooleanfalse

NetGhost

Tag: this entity is a client-side proxy of one the server owns.

Explained in scripting/networking.

A tag — it carries no fields.

Perceiver

Senses nearby perception targets within a sight cone and range.

Explained in gameplay/ai/perception.

FieldTypeDefaultNotes
rangenumber220 Range ≥ 0.
fovDegreesnumber360 Range 0–360.

Perceptiontransient

What a perceiver currently sees — written each frame for the entity's own logic to read.

Explained in gameplay/ai/perception.

FieldTypeDefaultNotes
visiblebooleanfalseA target is seen (runtime, read-only).
distancenumber0
targetXnumber0
targetYnumber0
dirXnumber0
dirYnumber0

PerceptionTarget

Tag: perceivers can see this entity.

Explained in gameplay/ai/perception.

A tag — it carries no fields.

Replicated

Marks an entity the server replicates to every client.

Explained in scripting/networking.

FieldTypeDefaultNotes
netIdnumber0
ownernumber0

StateMachineAgent

Runs a gameplay state machine asset, calling registry actions as states enter, update and exit.

Explained in gameplay/ai/state-machines.

FieldTypeDefaultNotes
fsmAsset<statemachine>none
currentstringemptyActive state (runtime, read-only).