Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Ui button doesn"t disappear [JS]

$
0
0
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 ;)

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>