Reputation: 371
I used the
GetComponent<Button>().interactable = false;
to disable the button component, but find the UI gameobject become transparent. And I just want disable the button without changing transparent, just like remove the tick on button component.
Did I use it wrong? Or is there something else to do it?
Upvotes: 0
Views: 931