This sample demonstrates disabled entities.
The scene contains 3 cubes with one of them disabled. This means only two cubes render to the screen. Working with disabled Entities is no different to GameObjects in the Editor.
Disabling an entity disables everything. To stop rendering the entity using an ECS script, add the DisableRendering tag to the entity.
- In the Hierarchy, open the Subscenes
- Select the disabled Cube
- In the Inspector, note that the Cube object is disabled.