using UIWidgets; using UnityEngine; [RequireComponent(typeof(Progressbar))] public class SampleProgressbar : MonoBehaviour { private void Start() { Progressbar component = GetComponent(); component.TextFunc = (Progressbar x) => string.Format("Exp to next level: {0} / {1}", x.Value, x.Max); } }