how to get componentsof an object in unnity code example Example: unity gameobject.getcomponent rb = GetComponent<Rigidbody>();