Hi im trying to turn off all of the images in my inventory as if i just setactive i can nolonger use the scripts inside of it i can get the top level using a simple for loop but it dosent go any deeper i need to loop through it to find all of the images lower than the inventory but im not quite sure how to do this
GetComponentsInChildren()
Will give you all the Image components in this object’s children, grandchildren etc. Unity - Scripting API: Component.GetComponentsInChildren