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