using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.UI.Extensions; public class UpdateRadialValue : MonoBehaviour { public InputField input; public RadialSlider slider; // Use this for initialization void Start () { } // Update is called once per frame public void UpdateSliderValue () { float value; float.TryParse(input.text, out value); slider.Value = value; } public void UpdateSliderAndle() { int value; int.TryParse(input.text, out value); slider.Angle = value; } }