# GetShapeBounds(List<Bounds>, bool, bool)

> Retrieves a list of Bounds for all PhysicsShape2D created by this Collider2D, and returns the combined Bounds of the retrieved list.

## Definition

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

```csharp
public Bounds GetShapeBounds(List<Bounds> bounds, bool useRadii, bool useWorldSpace)
```

### Parameters

**** (\[List\<Bounds>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The list used to store the returned [Bounds](/engine/6000.3/script-reference/unityengine/bounds.md).**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether the radius of each [PhysicsShape2D](/engine/6000.3/script-reference/unityengine/physicsshape2d.md) should be used to calculate the [Bounds](/engine/6000.3/script-reference/unityengine/bounds.md) or not.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether to transform all the returned [Bounds](/engine/6000.3/script-reference/unityengine/bounds.md) to world space or leave them in their default local space.

### Returns

| Type                                                            | Description                                                                                                 |
| --------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| [Bounds](/engine/6000.3/script-reference/unityengine/bounds.md) | Returns the combined [Bounds](/engine/6000.3/script-reference/unityengine/bounds.md) of the retrieved list. |

### Remarks

Additional Resources: [Bounds](/engine/6000.3/script-reference/unityengine/bounds.md), [Collider2D.GetShapes](/engine/6000.3/script-reference/unityengine/collider2d/getshapes.md) and [Collider2D.GetShapeHash()](/engine/6000.3/script-reference/unityengine/collider2d/getshapehash.md).
