LayerComp:

The layer component.

layerIndex(): number | null

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

returns

layer(): string | null

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

returns

layer(name: string):

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

Misc