logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityGauge

    Reusable fill/gauge bar wrapping a real Serenity UnityUiSliderComponent (the theme's LoadingProgress component). Drive it with SetFill(float) (0..1). Created via CreateGauge(Transform, string, int, string, float).

    Inheritance
    object
    SerenityGauge
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Ui.Infrastructure.Widgets
    Assembly: Serenity.UnityUi.Infrastructure.dll
    Syntax
    public sealed class SerenityGauge

    Constructors

    SerenityGauge(UnityUiSliderComponent, GameObject)

    Declaration
    public SerenityGauge(UnityUiSliderComponent slider, GameObject go)
    Parameters
    Type Name Description
    UnityUiSliderComponent slider
    GameObject go

    Properties

    GameObject

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

    Methods

    SetActive(bool)

    Declaration
    public void SetActive(bool on)
    Parameters
    Type Name Description
    bool on

    SetFill(float)

    Declaration
    public void SetFill(float value01)
    Parameters
    Type Name Description
    float value01
    In this article
    © 2026 Serenity. All Rights Reserved