I’ve used if(theObject.activeSelf == true){} and if(theObject.activeInHierarchy == true){} but I’m not really sure how to use those, if anyone could help me here that would be awesome!
Also, I need it in C#
I’ve used if(theObject.activeSelf == true){} and if(theObject.activeInHierarchy == true){} but I’m not really sure how to use those, if anyone could help me here that would be awesome!
Also, I need it in C#
activeSelf will check for the current gameObject
activeInHierarchy will check for the current as well as children of current gameObject
If you want to use activeInHierarchy make sure the child of current gameObject are active
Rest you can read in the docs