- Home /
Question by
grimreaperpt · Mar 13, 2014 at 12:13 AM ·
textnguilabel
Ngui: how to insert text on a label via javascript?
I just spent the last two hours searching on how to insert text on a label via javascript. It should be easy, I guess... I wanted to make a health bar and a timer. Can somebody help?
I wrote this code but it just gives me the error "The name 'UILabel' does not denote a valid type":
var scoreLabel : UILabel;
function Start () {
scoreLabel.text = "just testing";
}
Comment
Answer by rutter · Mar 13, 2014 at 12:15 AM
Sounds like a garden variety "how to make JS talk to C#" question.
Your answer
Follow this Question
Related Questions
NGUI - How to disable a UILabel ? 1 Answer
Ngui Text Vertical Scrollbar? 1 Answer
Having proper text areas in unity? 0 Answers
Color.white not so much white... 3 Answers
OnGUI called after LateUpdate screwing up debug text database 1 Answer