- Home /
Question by
mohamadjazman981013 · Nov 06, 2018 at 09:51 PM ·
buttondisable
how to disable a button for a while
i want to disable a button for a while when we does't enter a player name. please help me guys,i want to disable the button for a while when we does't not enter ther name
Comment
Best Answer
Answer by $$anonymous$$ · Nov 07, 2018 at 12:13 AM
did not check it but this is how it should be done I think.
public GameObject buttonToDisable;
void Update(){
if(name.Text == '") button.SetActive(false);
else button.SetActive(true);
}
should i write on the same scripts? @$$anonymous$$ine$$anonymous$$night10398
Your answer
