How can i make a 3Dtext say a variable for e.g.
var Testing = 1;
function Start(){
GetComponent.<TextMesh>().text = Testing;
}
How can i make a 3Dtext say a variable for e.g.
var Testing = 1;
function Start(){
GetComponent.<TextMesh>().text = Testing;
}
You probably need to use .ToString()
Try this:
var Testing = 1;
function Start(){
GetComponent.<TextMesh>().text = Testing.ToString();
}