Hello,
I want to get children objects of another object in hierarchy which does not contain script in which I’m coding, and then disable the children objects through code:
SetActive(false);
Let’s say my script is attached to an object called “GameManager” and I want to get children objects of an object called “MenuPanel” and disable them.
How do I do it? I don’t see any function which allows me to do it. I can only see GetComponentsInChildren etc. but I want don’t want to get components, I want to get CHILDREN OBJECTS. I tried getting component GameObject but it seems it is not a component.