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