Removed

GameObject.rigidbody

Cambiar al Manual
Obsolete public Component rigidbody ;

Descripción

El Rigidbody adjunto a este GameObject (Lectura solamente). (Null si no no hay uno adjunto).

using UnityEngine;

public class Example : MonoBehaviour { void Start() { gameObject.GetComponent<Rigidbody>().AddForce(0, 0, 1); } }