I've been getting used to arrays and experimenting with them a bit and I plan on messing around with lists properly as well and I was wondering if is possible to get the scripts of gameobjects within an array. By this I mean what I've got planned for a script I'm making is that I'm going to be getting NavMesh Agents and putting them into an array. I want to then get the script attached to these navmesh agents within the array and then move them to a certain point. Am I right in thinking that in order to do that I would need to get the script component of each navmesh agent and then execute the function required to move them? The closest answer to this I've found so far is here. https://answers.unity.com/questions/1155911/how-to-get-an-array-of-gameobjects-that-have-a-cer.html Not entirely sure whether this is the correct answer though for my specific problem.