Hi I’m having a problem with a UI Button which does not respond to input: debugging I found out it is considered IsActiveAndEnabled = false, but the Behaviour is enabled and the Gameobject is Active (both itself and in Hierarchy).
I have a script attached to the same gameobject as the UI Button, the script is considered IsActiveAndEnabled = true while the button is false (see image below)
What can be the reason I cannot interact with it? Am I missing something?
Thanks for the help!
,Hi everyone, I’m having a problem with a UI Button because it’s Behaviour is considered IsActiveAndEnabled = false.
I have a script that it’s placed on the same gameobject of a UI Button, on the OnEnable my script is considered enabled = true and IsActiveAndEnabled = true, while the Button is considered enabled = true but IsActiveAndEnabled = false (see image below), and therefore I can’t interacti with it.
As far as I know an object is IsActiveAndEnabled if the behaviour is enabled and the gameobject it is sitting on is Active (both itself and in Hierarchy)
What can be the reason it is set as IsActiveAndEnabled = false?
I can’t interact with the button.
Thank you for your help!