Q:

unity text display int

    public Text lifes;
	public int lifeAmt;
 
    void Start ()
    {
        lifes = GetComponent<Text>();
    }
 
    void Update ()
    {
        lifes.text = lifeAmt.ToString();
    }
0

New to Communities?

Join the community