Class SliderValueDisplay
Displays the value of a Slider on a TextMeshProUGUI component. Bind SetText(Single) to the OnChange event of a Slider.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
SliderValueDisplay
Namespace: LlamaSoftware.UI
Assembly: LlamaSoftware.UI.dll
Syntax
[RequireComponent(typeof(TextMeshProUGUI))]
[Obsolete("SliderValueDisplay is no longer required. Use EUIPSlider that includes this functionality out of the box without any manual input.")]
public class SliderValueDisplay : MonoBehaviour
Fields
Decimals
Number of decimals to display
Declaration
public int Decimals
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
SetText(Single)
Bind to the OnChange event of a Slider. Will set the TextMeshProUGUI text to the value passed in.
Declaration
public void SetText(float value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | value | Value to display |