uGUI Component Enabled Flag
This is still sort of experimental. Not precisely sure how to go about enabling/disabling gui components yet or what the best approach is for this sort of action.
You can target the GameObject with the components on it and...:
- Choose from a dropdown list of what you want to enable/disable.
- Target a specific component.
- Leave both of those options blank and enable/disable ALL normal uGUI components on the object
Typically it seems like each gameobject will only contain one or maybe two component types, such as Button and Image, so I'm assuming you'll want to turn them all off if you are using this sort of thing and figured it would be fastest if all of the default options set it so that you could just put the action on and choose the Enabled/Disabled flag you want.
There is no issue with turning off the wrong button since its impossible to have more than one per game object, making the "all on/off" idea make the most practical sense to me.
If you need to turn off children, you'll probably be better off with Activate GameObject which turns the whole object and its children off. This is intended to target specific gameobjects or components and leave the children intentionally undisturbed.
If you want an alternative you can use Enable Behaviour, which is basically a fancy version of the Specific Component slot on this action.
The types of components you can currently affect:
Button, Text, Image, RawImage, Slider, Scrollbar, Toggle & InputField
Let me know how it goes.