Question by
maltoc · Oct 06, 2015 at 02:46 AM ·
javascriptgui
Ui button doesn"t disappear [JS]
hey everibody i have a problem with unity i use Unityscript . so my problem is i can make disappear a text with the new ui but when i try to do the same for a button it doesn't work so the only think i have find is the boolean interactable but when i launch the game he is here and i don't want so this is my code
> import UnityEngine.UI;
> public var reload : Button;
> public var leave : Button;
> public var timetext : Text;
> >
> > function Start () {
> > timetext.enabled = false;
> > reload.interactable = false; // when i use enabled nothing append
> > leave.interactable = false;
> > }
> > function Update () {
> >
> > if (finished = true) {
> > timetext.enabled = true;
> > reload.interactable = true;
> > leave.interactable = true;
> >
> > }
> >
> > }
Thanks for your answer ;)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612040204im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Text disappear on OnTriggerExit() 1 Answer
Getting BCE0005: Unknown identifier: 'EditorStyles' error what is wrong with this piece of code? 0 Answers
Closing GUI of another Script 0 Answers
Move Button as soon as its klicked to the bottom Screen 1 Answer
أنجازات غير مسبوقة؟؟!!توكيل كاريير +بالاسكندرية 01286629661 0 Answers