UI / ProgressBar
ProgressBar Class
Progress Bar
Hierarchy
↳
ProgressBar
Table of contents
Properties
click
Properties
onCustomPropertyChange: Readonly <MulticastDelegate <(path : string , value : unknown , oldValue : unknown ) => void >> other |
---|
Monitor custom attribute synchronization events |
Accessors
backgroundImageColor(): Readonly <LinearColor > other |
---|
Obtain the color of the background image |
backgroundImageDrawType(): Readonly <SlateBrushDrawType > other |
Get background image drawing type |
backgroundImageGuid(): string other |
Get background image id |
backgroundImageMargin(): Readonly <Margin > other |
Get the background image margin of the progress bar |
backgroundImageSize(): Readonly <Vector2 > other |
Get the size of the background image |
barThickness(): number other |
Obtain the thickness of the progress bar |
currentValue(): number other |
Get current value |
fillImageColor(): Readonly <LinearColor > other |
Obtain the color of the filled image |
fillImageDrawType(): Readonly <SlateBrushDrawType > other |
Obtain the type of fill image drawing |
fillImageGuid(): string other |
Get the filled area image ID |
fillImageMargin(): Readonly <Margin > other |
Get Progress Bar image margin |
fillImageSize(): Readonly <Vector2 > other |
Get filled image size |
fillType(): ProgressBarFillType other |
Get the filling method of Progress Bar |
isRoundedToInt(): boolean other |
Get whether the current value is rounding |
onSliderValueChanged(): MulticastDelegate <(CurrentValue : number ) => void > other |
Slider value change event |
percent(): number other |
Get current percentage |
slideMethod(): SlideMethod other |
Get the sliding mode of the Progress Bar |
sliderButtonPressDelegate(): MulticastDelegate <(CurrentValue : number ) => void > other |
Slider Press Event |
sliderButtonReleaseDelegate(): MulticastDelegate <(CurrentValue : number ) => void > other |
Slider lifting event |
sliderMaxValue(): number other |
Get the maximum value of the drag bar |
sliderMinValue(): number other |
Get the minimum value of the drag bar |
thumbImageColor(): Readonly <LinearColor > other |
Get slider image color |
thumbImageDrawType(): Readonly <SlateBrushDrawType > other |
Get slider image drawing type |
thumbImageGuid(): string other |
Get the filled area image ID |
thumbImageMargin(): Readonly <Margin > other |
Get the margin of the drag bar image |
thumbImageSize(): Readonly <Vector2 > other |
Get slider image size |
click
Accessors
alignPosition(): Readonly <Vector2 > other |
---|
Get the align position of the widget. When the align method is right align, bottom align, and center align, the value of alignPosition is different from that of position; |
autoSizeHorizontalEnable(): boolean other |
Get whether to automatically set the size horizontally |
autoSizeVerticalEnable(): boolean other |
Get whether to set the size automatically vertical |
cachedGeometry(): Geometry other |
Get the previous Get TickSpaceGeometry |
constraints(): Readonly <UIConstraintAnchors > other |
Get the layout of the control |
desiredSize(): Vector2 other |
Obtain expected size |
enable(): boolean other |
Is it available |
guid(): string other |
Get the widget GUID |
isHovered(): boolean other |
Is it hovered |
mouseCursor(): MouseCursor other |
Get the cursor type on the widget |
name(): string other |
Get Name |
paintSpaceGeometry(): Geometry other |
Get the last geometric information used to render the Widget |
parent(): Widget other |
Get parent node |
pivot(): Vector2 other |
Get the position of the widget anchor. This property determine the relative position of the widget graph and the anchor; At (0,0), the anchor point is located in the upper left corner of the control; (0.5,0.5), the anchor is at the center of the widget |
position(): Readonly <Vector2 > other |
Get the position of the control |
renderOpacity(): number other |
Obtain rendering transparency |
renderScale(): Vector2 other |
Get rendering scaling |
renderShear(): Vector2 other |
Obtain rendering misalignment deformation |
renderTransformAngle(): number other |
Obtain the rendering angle |
renderTransformPivot(): Vector2 other |
Get Render anchor |
size(): Vector2 other |
Get size |
tickSpaceGeometry(): Geometry other |
Retrieve the last geometric information used to drive Widget Tick |
transform(): Readonly <UITransform > other |
Obtain the size and position of the control |
visibility(): SlateVisibility other |
Get visibility |
visible(): boolean other |
Is it visible |
zOrder(): number other |
Get Zorder |
Methods
newObject(parent? : Canvas , inName? : string ): ProgressBar other |
---|
Create ProgressBar widget |
click
Methods
addChild(child : Widget ): void other |
---|
Add child nodes |
clone(position : Vector2 , Parent? : any ): Widget other |
Clone the UI widget and its child nodes to the specified parent widget position (default to its parent node) |
destroyObject(): void other |
Remove and destroy immediately. Cannot be used again |
equal(that : Widget ): boolean other |
Determine if it is the same object |
findChildByPath(inPath : string ): Widget other |
Find nodes by relative path |
getChildAt(index : number ): Widget other |
What is the position node to obtain |
getChildByName<T : extends Widget <T >>(name : string ): T : extends Widget <T > other |
Search for nodes by name |
getChildrenCount(): number other |
Obtain the number of child nodes |
getCustomProperties(): string [] other |
Get all customize property |
getCustomProperty<T : extends CustomPropertyType >(propertyName : string ): T : extends CustomPropertyType other |
Get customize property |
getCustomPropertyChangeDelegate(property ): Readonly <MulticastDelegate <(path : string , value : unknown , oldValue : unknown ) => void >> other |
Event proxy triggered when a given object property is modified |
invalidateLayoutAndVolatility(): void other |
Immediately trigger re rendering and layout calculation |
removeAllChildren(): void other |
Clearing all child nodes will destroy the UI and render it unusable |
removeChild(child : Widget ): void other |
Removing a node will destroy the UI and make it unusable |
removeChildAt(index : number ): void other |
Removing the third node will destroy the UI and render it unusable |
removeObject(): void other |
Immediately remove and add to the root node for reuse |
serialize(): string other |
Serialize UI widget |
setCustomProperty(propertyName : string , value : undefined CustomPropertyType ): void other |
Set custom attributes |
deserialize(Data : string , Parent? : Widget ): Widget other |
Deserialize UI |
Properties
Accessors
backgroundImageColor
• | • | ||||
---|---|---|---|---|---|
Obtain the color of the background image Returns
| Set background image color Parameters
|
backgroundImageDrawType
• | • | ||||
---|---|---|---|---|---|
Get background image drawing type Returns
| Set the drawing type of background image Parameters
|
backgroundImageGuid
• | • | ||||
---|---|---|---|---|---|
Get background image id Returns
| Set progress bar background image Parameters
void |
backgroundImageMargin
• | • | ||||
---|---|---|---|---|---|
Get the background image margin of the progress bar Returns
| Set progress bar background image margin Parameters
|
backgroundImageSize
• | • | ||||
---|---|---|---|---|---|
Get the size of the background image Returns
| Set the size of the background image Parameters
|
barThickness
• | • | ||||
---|---|---|---|---|---|
Obtain the thickness of the progress bar Returns
| Set the thickness of the Progress Bar Parameters
|
currentValue
• | • | ||||
---|---|---|---|---|---|
Get current value Returns
| set currency Parameters
void |
fillImageColor
• | • | ||||
---|---|---|---|---|---|
Obtain the color of the filled image Returns
| Set the color of the filled image Parameters
|
fillImageDrawType
• | • | ||||
---|---|---|---|---|---|
Obtain the type of fill image drawing Returns
| Set fill image drawing type Parameters
|
fillImageGuid
• | • | ||||
---|---|---|---|---|---|
Get the filled area image ID Returns
| Set progress bar image Parameters
void |
fillImageMargin
• | • | ||||
---|---|---|---|---|---|
Get Progress Bar image margin Returns
| Set Progress Bar image margin Parameters
|
fillImageSize
• | • | ||||
---|---|---|---|---|---|
Get filled image size Returns
| Set the fill image size Parameters
|
fillType
• | • | ||||
---|---|---|---|---|---|
Get the filling method of Progress Bar Returns
| Set the filling method of Progress Bar Parameters
void |
isRoundedToInt
• | • | ||||
---|---|---|---|---|---|
Get whether the current value is rounding Returns
| Set whether the current value is rounded to the nearest integer Parameters
void |
onSliderValueChanged
• | ||
---|---|---|
Slider value change event Returns
|
percent
• | • | ||||
---|---|---|---|---|---|
Get current percentage Returns
| Set current percentage Parameters
void |
slideMethod
• | • | ||||
---|---|---|---|---|---|
Get the sliding mode of the Progress Bar Returns
| Set the sliding mode of the progress bar Parameters
|
sliderButtonPressDelegate
• | ||
---|---|---|
Slider Press Event Returns
|
sliderButtonReleaseDelegate
• | ||
---|---|---|
Slider lifting event Returns
|
sliderMaxValue
• | • | ||||
---|---|---|---|---|---|
Get the maximum value of the drag bar Returns
| Set the maximum value of the drag bar Parameters
void |
sliderMinValue
• | • | ||||
---|---|---|---|---|---|
Get the minimum value of the drag bar Returns
| Set the minimum value for the drag bar Parameters
void |
thumbImageColor
• | • | ||||
---|---|---|---|---|---|
Get slider image color Returns
| Set slider image color Parameters
|
thumbImageDrawType
• | • | ||||
---|---|---|---|---|---|
Get slider image drawing type Returns
| Set slider image drawing type Parameters
|
thumbImageGuid
• | • | ||||
---|---|---|---|---|---|
Get the filled area image ID Returns
| Set the style of the drag bar Parameters
void |
thumbImageMargin
• | • | ||||
---|---|---|---|---|---|
Get the margin of the drag bar image Returns
| Set drag bar image margin Parameters
|
thumbImageSize
• | • | ||||
---|---|---|---|---|---|
Get slider image size Returns
| Set slider image size Parameters
|
Methods
newObject
• Static
newObject(parent?
, inName?
): ProgressBar
other
Create ProgressBar widget
Parameters
parent? Canvas | Usage: Create the external parent object of the control with default: null |
---|---|
inName? string | Usage: name of the create widget default: null range: set a reasonable name |
Returns
ProgressBar | Created objects |
---|
When the parent and inName are the same as an existing object, the old object will be destroyed