Hey there @SOLDIEROSCAR! Implementation is mostly the same, taking a reference to them as an array or list and iterating through it, but the “how” depends entirely on your use case, so I have a couple questions!
Does this need to be at runtime or in editor?
Do you have a way of categorizing them? (Are they all the same class or children of the class? Or is there some other indicator like a Gameplay tag?) If not, you may need to store a variable reference to them (likely in an array), before we can iterate on them.