Version: 2021.3
언어: 한국어
Removed

GameObject.rigidbody

매뉴얼로 전환
Obsolete public Component rigidbody ;

설명

The Rigidbody attached to this GameObject (Read Only). (Null if there is none attached).

using UnityEngine;

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