using UnityEngine;
using UnityEngine.UI;
[AddComponentMenu("UI/Text (Float)")]
[AddComponentMenu.componentOrder = 4] ??!?!??
public class FloatText:Text
{
public float _floatText;
public float floatText
{
set
{
_floatText = value;
text = _floatText.ToString("#.00");
}
}
}
The constructor arguments to not have to match member names. The constructor argument could be called helloGoodbye and it wouldn’t make a bit of a difference.
Well, idk, count up starting from Selectable.
1 - Selectable
2 - Toggle Group
…
11 - FloatText