- Home /
Question by
magg · Oct 21, 2014 at 08:20 PM ·
javascript
Daikon Forge change dfLabel text
Greetings.
How do I change text of dfLabel from my JS (unityscript)?
Thank you.
Code:
GameObject.Find('/UI Root/Panel/LabelRed').GetComponent(dfLabel).Text = 'JS';
Error: BCE0005: Unknown identifier: 'dfLabel'.
GameObject.Find('/UI Root/Panel/LabelRed').GetComponent('dfLabel').Text = 'JS';
Throws error: BCE0019: 'Text' is not a member of 'UnityEngine.Component'.
My old C# script:
-||-.Find<dfLabel>("LabelRed").Text = 'C#';
Comment
Your answer
Follow this Question
Related Questions
Why do i get 4 errors here? (Javascript) 1 Answer
Is it the same javascript 1 Answer
Referencing subclass in Unity JS 2 Answers
I need instantiated game objects to move once they're instantiated 3 Answers
Unity Account system 1 Answer