Getting children without using transform?

I am trying to access children of a “GameObject” that are set up to all be of the same custom class. Just call it the “GameItem” class.

However how do I access these dynamically through code, so that I can use it’s member functions? I am not seeing how to do this. You would think you could look for a class type off of the Gameobject, but it doesn’t seem to work that way. Am I just missing something obvious here?

Thanks everyone.

Component[ ] components = gameObject.GetComponentsInChildren(typeof(GameItem));
GameItem gameItem0 = components[0] as GameItem;
// etc.

This is C# of course. Javascript is basically the same.

Poita_, you are a gentleman and a scholar. Thank you for clarifying that for me.