Class InputFieldSliderValueDisplay
Sets the value of this TMP_InputField to the value received from a Slider. Attach this to a TMP_InputField, bind the OnChange event of a Slider to call SetValue.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
InputFieldSliderValueDisplay
Namespace: LlamaSoftware.UI
Assembly: LlamaSoftware.UI.dll
Syntax
[RequireComponent(typeof(TMP_InputField))]
[Obsolete("InputFieldSliderValueDisplay is no longer required. Use EUIPSlider that includes this functionality out of the box without any manual input.")]
public class InputFieldSliderValueDisplay : MonoBehaviour
Fields
Decimals
Number of decimals to display in the InputField
Declaration
public int Decimals
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
SetValue(Single)
Bind this to the OnChange event of a Slider. Sets the value of the InputField to the received value.
Declaration
public void SetValue(float value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | value | Value to display |