get all components of gameobject unity code example Example: unity get all components in gameobject GetComponents<Component>()