# GetWorldRect()

> Returns the world-space axis-aligned bounding box of this RectTransform.

## Definition

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

```csharp
public Rect GetWorldRect()
```

### Returns

| Type                                                        | Description                                                                                                                                      |
| ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Rect](/engine/6000.7/script-reference/unityengine/rect.md) | A [Rect](/engine/6000.7/script-reference/unityengine/rect.md) describing the world-space bounding box. Width and height are always non-negative. |

### Remarks

The returned [Rect](/engine/6000.7/script-reference/unityengine/rect.md) is the smallest axis-aligned rectangle that encloses all four world-space corners of this RectTransform. For a RectTransform with non-zero Z rotation, the bounding box is larger than the element's nominal size.

Additional Resources: GetScreenRect, [RectTransform.Contains](/engine/6000.7/script-reference/unityengine/recttransform/contains.md).
