I’ve learned a lot in the past few months and I mean A LOT. Components are very useful and all but as I was scripting/programming and messing around I thought to myself, “How are the components connected to the game object?”. You can get a component using GetComponent or add one with AddComponent but how does the component know which game object it’s attached to if the game object isn’t storing some sort of array or list of all the components attached to it? Are the components just floating in space and GetComponent does something like GameObject.Find and searches for all components that have the same game object as their gameObject variable?
And that was me thinking out loud. Thanks for reading!