Version: 5.5 (switch to 5.6b)
LanguageEnglish
  • C#
  • JS

Script language

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

Removed in version 5.5.0p1

GameObject.rigidbody2D

Switch to Manual
Obsolete public Component rigidbody2D;

Description

The Rigidbody2D component attached to this GameObject. (Read Only)

This property will be null if no Rigidbody2D is attached.

See Also: rigidbody.