Skip to content

CachedEntityQueryBuilderBase.OnlyEnabled() Method

Definition

Namespace: Brine2D.ECS.Query

Filters to entities where all required components have IsEnabled set to true. Components are already pre-resolved during cache rebuild, so this check adds negligible overhead.

public TSelf OnlyEnabled();

Returns

TSelf

Remarks

This is distinct from active-state filtering: IncludeInactive() controls IsActive (entity-level), while OnlyEnabled() filters by IsEnabled (component-level).