Area
A shape that notices other areas overlapping it, for triggers, pickups, hitboxes and hurtboxes. A script with an Area base hears them enter and leave.
On this page
Add it
+ Add node → Area, Audio Zone, Effector creates a node with it already on. Already have a node for it? Add component → AreaComponent.
From a script
A script on the same node writes these fields by name. AreaComponent is the name to pass.
rgs
set_text("AreaComponent", "track", ""); Fields
| Field | Script name | Kind | Default | What it does | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Shape | shape | section | — | The shape this area covers. Always non-solid — a solid shape is a Collider instead. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Layer | layer | number | 1 | Which layers this area is on. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mask | mask | number | 1 | Which layers this area looks for. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Track | track | text | empty | Animation event track that enables this area; empty is always on. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||