- Home /
Question by
BTEC_Australian · Sep 23, 2014 at 07:21 PM ·
unity 4.6
Unity 4.6 text rendering
Hi there
I have recently updated to the latest version of unity and I want to be able to render and de-render the text like you would with 3D text in unity 4.5, but I tried the normal script and it didn't work. Can somebody please give me the correct script?
Thank you
Comment
If you mean new UI Text then all you have to do is get that text Component from current GameObject via this.GetComponent() and set it's 'enabled' proberty to TRUE or FALSE
Don't forget, in order to access the class "Text" or "Image" or anything related to the new unity UI, you must first add the assembly for it by adding:
using UnityEngine.UI
Your answer
![](https://koobas.hobune.stream/wayback/20220613163633im_/https://answers.unity.com/themes/thub/images/avi.jpg)