Version: 2021.3
言語: 日本語
Obsolete public Component rigidbody ;

説明

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

using UnityEngine;

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