isActive property
bool
get
isActive
Whether this entity itself is switched on — the scene's saved "enabled" flag, which an editor shows and saves.
Switched off, the entity stays in the world but drops out of World.query results, so the systems pass it by — and so does everything under it in the hierarchy, whose own flags are kept as they are: see isActiveInHierarchy, which is what decides. Changing it tells the entity's world, which refreshes its cached queries and moves their World.queryVersions on.
Implementation
bool get isActive => _isActive;
set
isActive
(bool value)
Implementation
set isActive(bool value) {
if (_isActive == value) return;
_isActive = value;
_world?._activeChanged(this);
}