Class: ProgressBarComponent
A display-only bar (Cocos's ProgressBar): bar (a child) shows progress of the host's track — cropped if it's a Sprite with a fill type (horizontal / vertical), else resized along the track. ProgressBarSystem applies it every frame, edit mode included.
Extends
Constructors
Constructor
ts
new ProgressBarComponent(): ProgressBarComponent;Returns
ProgressBarComponent
Inherited from
Properties
| Property | Modifier | Type | Default value | Inherited from |
|---|---|---|---|---|
bar | public | number | null | undefined | - |
direction | public | UIFillDirection | undefined | - |
dirty | public | boolean | true | Component.dirty |
enabled | public | boolean | true | Component.enabled |
progress | public | number | undefined | - |
Methods
SetBar()
ts
SetBar(target): void;Parameters
| Parameter | Type |
|---|---|
target | number | Entity | null |
Returns
void