Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

tostring tmpro unity

	[SerializeField] TextMeshProUGUI healthText;
    [SerializeField] int health;
    // Start is called before the first frame update
    void Start()
    {
        
    }

    private void UpdateHealthText()
    {
        healthText.text = health.ToString();
    }
 
PREVIOUS NEXT
Tagged: #tostring #tmpro #unity
ADD COMMENT
Topic
Name
6+6 =