Skip to main content

Class FillBarController

Controls fill bar sliders and their related text meshes, allowing for tweening and color effects based on value.

public class FillBarController : MonoBehaviour

Inheritance​

Fields​

m_SliderMinMax​

The minimum and maximum values allowed for the fill bar sliders.

[Tooltip("The minimum and maximum range values for the fill bars.")]
[MinMaxSlider(0, 100)]
public Vector2 m_SliderMinMax

Field Value​

Vector2

Methods​

SetValue(float)​

Sets the target value to update the fill bars and text elements.

public void SetValue(float value)

Parameters​

NameTypeDescription
valuefloatThe new target value for the fill bars.