LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.
Removed in version 2017.4.40

Component.rigidbody2D

Obsolete public Component rigidbody2D;

Description

The Rigidbody2D that is attached to the Component's GameObject.

This property will be null if no Rigidbody2D is attached.

See Also: rigidbody.