Search Results for

    Show / Hide Table of Contents

    Class BarSegment

    Represent a portion of the ProgressBar using an Image.

    Inheritance
    object
    BarSegment
    FillSegment
    Namespace: TetraCreations.ProgressBarSystem
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public class BarSegment

    Fields

    Enable

    Declaration
    public bool Enable
    Field Value
    Type Description
    bool

    Gradient

    Declaration
    public Gradient Gradient
    Field Value
    Type Description
    Gradient

    UseGradient

    Declaration
    public bool UseGradient
    Field Value
    Type Description
    bool

    Properties

    Color

    Declaration
    public Color Color { get; set; }
    Property Value
    Type Description
    Color

    FillAmount

    Declaration
    public float FillAmount { get; set; }
    Property Value
    Type Description
    float

    Image

    Declaration
    public Image Image { get; protected set; }
    Property Value
    Type Description
    Image

    ImageFillMethod

    Declaration
    public FillMethod ImageFillMethod { get; set; }
    Property Value
    Type Description
    FillMethod

    ImageFillOrigin

    Declaration
    public int ImageFillOrigin { get; set; }
    Property Value
    Type Description
    int

    RectTransform

    Declaration
    public RectTransform RectTransform { get; protected set; }
    Property Value
    Type Description
    RectTransform

    SegmentType

    Declaration
    public SegmentType SegmentType { get; }
    Property Value
    Type Description
    SegmentType

    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
    Type Description
    bool

    SetImageGradientColor()

    Set the segment image using gradien color

    Declaration
    protected void SetImageGradientColor()
    In This Article
    Back to top Tetra Creations documentation