UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"show the percentage value"
public class ShowValueWithPercentage: MonoBehaviour { public Text percentageText; void Start() { percentageText = GetComponent<Text>(); } public void textUpdate(float value) { percentageText.text = Mathf.RoundToInt(value * 100) "%"; } }