- Home /
Unknown Identifier (more information within)
var tm : TextMesh = gameObject.GetComponent(Texto);
function Update () { if(worldone.drawit == true) { tm.text = "WORLDONE"; } }
This is the code i am working with, and the error points to "Texto". My 3DText GameObject is called Texto and i have linked both that and the script together. I have tried putting "var Texto:GameObject;" before var tm but this spits out another error. Any suggestions?
Thank you
Answer by Matthew Dennis · Apr 14, 2011 at 02:00 PM
Just solved it!
It would be helpful for you to edit your post with your solution so that others with similar problems can be helped. You can also mark your answer as correct.
Your answer
Follow this Question
Related Questions
AI Pathfinding BCE0019: 'GetComponent' is not a member of 'Object'. 1 Answer
GetComponent null reference C# 1 Answer
GetComponent of copies of one gameobject? 0 Answers
How to get script component of an object with out using its name? 2 Answers
Help with accessing scoring system variable C# plz. 3 Answers