Hello everyone !
I am currently using Unity 5.1.1f1 and having a very strange problem with scripts and UI Text.
In my scene, I got a parent Canvas that contains a Text element as child. On the Canvas object, I attached a C# script that modify text and color attributes of the Text, to make a lyrics systems. All work well and when all lyrics have been displayed, the lyrics script of the Canvas is deleted.
In my scene, I have an other object that contains the same lyrics script. A reference to the Text object of the Canvas is given to this script, in order to allow this one to modify it.
When the first lyrics system of the Canvas is done and deleted, this one should start. During runtime, the first lyrics group display correctely. And when the second lyrics script of the object is called to start the second lyrics group, nothing shows at screen. My text is not appearing anymore, but in hierarchy I can see the Text’s text attribute dynamically changing, and same for the colors… So the script is working good, the text and color is changing but not showing…
Why with first script and first object all work well, and with same script on other object all work well too, but the Text is not showing ? I have ne errors and warnings.
Thank you for your help ! ![]()
PS : Sorry for my bad english and telling, because I’m french ! Don’t hesitate to ask me to say differently.