Profectus / game/layers / removeLayer
removeLayer(layer): void
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.
Layer
The layer to remove.
profectus/src/game/layers.tsx:347