기술 자료

Unity Engine

Unity Engine

rigidbody2D

The Rigidbody2D component attached to this GameObject. (Read Only)
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
경고
Removed. Property rigidbody2D has been deprecated. Use GetComponent\<Rigidbody2D\>() instead.
public Component rigidbody2D { get; }

Remarks

This property will be null if no Rigidbody2D is attached.
Additional Resources: GameObject.rigidbody.