I’m using DoozyUI and everything is working fine. Now I would like to disable/enable a UIButton through code. How can I achieve this?
Hmmm. Although I have use DUI before, I can’t remember if they used anything non-Standard.
To disable (meaning it’s still therem but will not respond to clicks, and - if that Interface theme is used - will draw the inactive theme) a button, you usually use
myButton.interactable = false;
To make it disappear, use
myButton.SetActive(false);
-ch
Thanks it works