Skip to content

Profectus / game/layers / removeLayer

Function: removeLayer() ​

removeLayer(layer): void

Disables a layer, so it will no longer be updated every tick. Note that accessing a layer/its properties does NOT require it to be enabled.

Parameters ​

layer ​

Layer

The layer to remove.

Returns ​

void

Defined in ​

profectus/src/game/layers.tsx:347