Make a button interactable(false) but text is not fading

I am creating a level system and the unclocked levels are not interactable.
Everything is fine till i saw that the text of the button remains


Is there a setting that i don’t know to fix this ?

Well, you either need to fade the text as well, since it has it’s own color. Or, if the icon and the text are both children of another object, you can place a canvas group on the parent and adjust the alpha on the canvas group, which will fade the children under it.

I think because your icon is a button, when you make it inactive, it’s using the inactive state, but that only applies to the image on the button. So, you’ll have to handle fading the other items yourself using one of the methods I mentioned.

2 Likes

Set your code aside and reach for the animator… BAM! Done.

Smack that Auto Generate Animation and get animating!

5 Likes