hello, I am trying to Set Active(true/false), specific Item in my Canvas based on weather or not they have a specific Script Attached to them. So Far I have been Doing it the long way by referencing them and dragging them but its getting too messy as you can see:
What exactly am I looking at here? Is this a script with a list of components to deactivate? If so…
You don’t need to make a special field for each of these in your script to diable them. Just use an array of GameObjects and add them all to the array. (GameObject[ ] ObjectsToDeactivate)
You could avoid all of this if all of these objects were children of one GameObject, then you could just SetActive(false) on that parent object and deactivate all of them.