2D Toolkit Forum
2D Toolkit => Support => Topic started by: test84 on February 10, 2014, 09:06:11 pm
-
Hi,
If we want to make a normal Unity GO disappear or invisible, we put it's renderer's enabled property to false. But how can I do the same with a tk2dUIProgressBar?
Thanks.
-
You can just SetActive(false) or if you want you can find all the renderrs and disable them...
-
Thanks.
Like this?
my_Progress_Bar.gameObject.SetActive(false);
BTW, why calling SetActive doesn't work on the progress bar itself? Isn't it a GameObject?
Thanks man.
-
Its not a game object, its a tk2dUIScrollBar which is attached to a gameobejct.