There is pause button in game, i want to make it invisible and disabled when clicked , please explain me how should i declare the UI button thank you in advance
@suvrat12 Just use this line to disable the button after onclick button.
Getcomponent<Button>().interactable = false;
And for making it invisible just get it as gameobject and use gameobject.SetActive(false).