Skip to content

API Class Decals

github-actions[bot] edited this page Nov 30, 2026 · 3 revisions

Class: Decals

Defined in: src/plugins/decals/runtime/Decals.ts:219

Spawned decals in the current World (see the file comment).

Accessors

count

Get Signature

get static count(): number;

Defined in: src/plugins/decals/runtime/Decals.ts:282

How many spawned decals the current World has (fading ones included).

Returns

number

Methods

clear()

static clear(): void;

Defined in: src/plugins/decals/runtime/Decals.ts:277

Remove every spawned decal in the current World at once.

Returns

void


project()

static project(options): DecalHandle;

Defined in: src/plugins/decals/runtime/Decals.ts:223

Place a 3D decal: a box projecting along its +Z onto the opaque surfaces inside it.

Parameters

options

DecalProjectOptions

Returns

DecalHandle


stamp()

static stamp(options): DecalHandle;

Defined in: src/plugins/decals/runtime/Decals.ts:250

Stamp a 2D decal: a sprite on a sorting layer, optionally clipped to another node's sprite.

Parameters

options

DecalStampOptions

Returns

DecalHandle

Clone this wiki locally