Get component from GameObject code example Example: unity gameobject.getcomponent rb = GetComponent<Rigidbody>();