setVisibilityLayer abstract method

Future setVisibilityLayer(
  1. ThermionEntity entity,
  2. int layer
)

All renderable entities are assigned a layer mask.

By calling setLayerVisibility, all renderable entities allocated to the given layer can be efficiently hidden/revealed.

By default, all renderable entities are assigned to layer 0 (and this layer is enabled by default). Call setVisibilityLayer to change the layer for the specified entity.

Note that we currently also assign gizmos to layer 1 (enabled by default) and the world grid to layer 2 (disabled by default). We suggest you avoid using these layers.

Implementation

Future setVisibilityLayer(ThermionEntity entity, int layer);