Version 3.3.0.1

ProgressBarConfig struct

Namespace: Sirenix.Utilities.Editor
Assembly: Sirenix.Utilities.Editor
public struct ProgressBarConfig
Configuration for progress bar fields.

Constructors

ProgressBarConfig(ProgressBarConfig)
Creates a copy of the configuration.
public ProgressBarConfig(ProgressBarConfig config)
Parameters
ProgressBarConfig config

The configuration to copy.

ProgressBarConfig(Int32, Color, Color, Boolean, TextAlignment)
Creates a progress bar configuration.
public ProgressBarConfig(int height, Color foregroundColor, Color backgroundColor, bool textOverlay, TextAlignment overlayAlignment)
Parameters
System.Int32 height

The height of the progress bar.

UnityEngine.Color foregroundColor

The foreground color of the progress bar.

UnityEngine.Color backgroundColor

The background color of the progress bar.

System.Boolean textOverlay

If true there will be drawn a overlay on top of the field.

UnityEngine.TextAlignment overlayAlignment

The alignment of the text overlay.

Fields

BackgroundColor
The background color of the progress bar field.
public Color BackgroundColor
DrawValueLabel
If true the progress bar field will draw a label ontop to show the current value.
public bool DrawValueLabel
ForegroundColor
The foreground color of the progress bar field.
public Color ForegroundColor
Height
The height of the progress bar field. Default 12 pixel.
public int Height
ValueLabelAlignment
Alignment of the progress bar field overlay.
public TextAlignment ValueLabelAlignment

Properties

Default
Default configuration.
public static ProgressBarConfig Default { get; }