I’m using a Canvas and a text component (See attached file)
How do i though script make it change to like. Time.deltaTime?
I’m using a Canvas and a text component (See attached file)
How do i though script make it change to like. Time.deltaTime?
You can do something like this, place this on the text component:
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class TextTest : MonoBehaviour {
void Update () {
GetComponent<Text>().text = Time.deltaTime.ToString();
}
}