Interface

LayerComp

:

The layer component.

group Component Types

get

layerIndex

(): number | null

Get the index of the current layer the object is assigned to.

returns The index of the layer the object is assigned to, or null if the layer does not exist.

get

layer

(): string | null

Get the name of the current layer the object is assigned to.

returns The name of the layer the object is assigned to.

set

layer

(name: string)

Set the name of the layer the object should be assigned to.

kaplay logo

Layer

Miscellaneous