# rigidbody2D

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

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.3/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

> **Warning:**
>
> **Removed.** Property rigidbody2D has been deprecated. Use GetComponent\\\<Rigidbody2D\\>() instead.

```csharp
public Component rigidbody2D { get; }
```

### Remarks

This property will be null if no Rigidbody2D is attached.

Additional Resources: [GameObject.rigidbody](/engine/6000.3/script-reference/unityengine/gameobject/rigidbody.md).
