Class BarSegment
Represent a portion of the ProgressBar using an Image.
Inheritance
object
BarSegment
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class BarSegment
Fields
Enable
Declaration
Field Value
Gradient
Declaration
Field Value
Type |
Description |
Gradient |
|
UseGradient
Declaration
Field Value
Properties
Color
Declaration
public Color Color { get; set; }
Property Value
FillAmount
Declaration
public float FillAmount { get; set; }
Property Value
Image
Declaration
public Image Image { get; protected set; }
Property Value
ImageFillMethod
Declaration
public FillMethod ImageFillMethod { get; set; }
Property Value
Type |
Description |
FillMethod |
|
ImageFillOrigin
Declaration
public int ImageFillOrigin { get; set; }
Property Value
Declaration
public RectTransform RectTransform { get; protected set; }
Property Value
Type |
Description |
RectTransform |
|
SegmentType
Declaration
public SegmentType SegmentType { get; }
Property Value
Methods
Initialize(float)
Set the Image fill amount and update it's color.
Declaration
public virtual void Initialize(float fillAmount)
Parameters
Type |
Name |
Description |
float |
fillAmount |
|
IsValid()
Declaration
public virtual bool IsValid()
Returns
SetImageGradientColor()
Set the segment image using gradien color
Declaration
protected void SetImageGradientColor()