Function: createUiProgressBarEcsSystem()
createUiProgressBarEcsSystem():
EcsSystem<[UiProgressBarEcsComponent]>
Defined in: ui/systems/ui-progress-bar-system.ts:25
Creates a system that drives a UiProgressBarEcsComponent's fill entity
anchorMax.x from value every tick - the same "normalize, then anchor a
stretch rect to it" mechanism createUiSliderEcsSystem uses for a
slider's fill, without the drag handling a progress bar has no need for.
createUiCanvas registers this once per world, before
createUiLayoutEcsSystem, so a value write and the fill visual it
produces land in the same frame - unlike createUiSliderEcsSystem, which
has to run after the interaction pipeline and so lags a frame.
Returns
EcsSystem<[UiProgressBarEcsComponent]>
The UI progress bar ECS system.