Structs

Insert this component to add a statbar to an entity. Multiple statbars can be inserted on a single entity by using different marker components.
Adds a border around the corresponding Statbar
Linearly interpolate the value of the bar color between min and max using the value of the Statbar
Change the statbar color depending on the value of the statbar’s subject
Insert as a resource to set z depth of Statbars
Insert this component to observe components from another entity. Does not have a generic parameter for a marker component.
Insert this component to observe components from the entities parent. Overrides any local obversable components and StatbarObservedEntity.

Enums

Traits

Implement StatbarObservable for a component you want to visualise with a stat bar. Should return a value between 0.0 (= empty) and 1.0 (= full). If the value is larger or smaller it is clamped before rendering.