Component.IsEnabled Property
Definition¶
Namespace: Brine2D.ECS
Whether this component is enabled. Checked by built-in systems (rendering, physics, collision, audio, AI, particles) to skip processing of individual components without removing them. Custom systems should check this property when processing components.
public bool IsEnabled { get; set; }
Property Value¶
Remarks¶
This is distinct from IsActive: toggling
IsActive disables the entire entity and all its components;
toggling IsEnabled disables a single component while the
entity and its other components continue processing.
Cached queries built with OnlyEnabled() are automatically
invalidated when this value changes.