# RectTransformUtility

> Utility class containing helper methods for working with RectTransform.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.UIModule

```csharp
public sealed class RectTransformUtility
```

## Static Methods

| Method                                                                                                                                           | Description                                                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CalculateRelativeRectTransformBounds](/engine/6000.0/script-reference/unityengine/recttransformutility/calculaterelativerecttransformbounds.md) | Creates a Bounds object that encapsulates all the child RectTransform objects found in the `child` parameter, and converts the resulting bounds into local space relative to the `root` transform. |
| [FlipLayoutAxes](/engine/6000.0/script-reference/unityengine/recttransformutility/fliplayoutaxes.md)                                             | Flips the horizontal and vertical axes of the RectTransform size and alignment, and optionally its children as well.                                                                               |
| [FlipLayoutOnAxis](/engine/6000.0/script-reference/unityengine/recttransformutility/fliplayoutonaxis.md)                                         | Flips the alignment of the RectTransform along the horizontal or vertical axis, and optionally its children as well.                                                                               |
| [PixelAdjustPoint](/engine/6000.0/script-reference/unityengine/recttransformutility/pixeladjustpoint.md)                                         | Convert a given point in screen space into a pixel correct point.                                                                                                                                  |
| [PixelAdjustRect](/engine/6000.0/script-reference/unityengine/recttransformutility/pixeladjustrect.md)                                           | Given a rect transform, return the corner points in pixel accurate coordinates.                                                                                                                    |
| [RectangleContainsScreenPoint](/engine/6000.0/script-reference/unityengine/recttransformutility/rectanglecontainsscreenpoint.md)                 | Does the RectTransform contain the screen point?                                                                                                                                                   |
| [ScreenPointToLocalPointInRectangle](/engine/6000.0/script-reference/unityengine/recttransformutility/screenpointtolocalpointinrectangle.md)     | Transform a screen space point to a position in the local space of a RectTransform that is on the plane of its rectangle.                                                                          |
| [ScreenPointToRay](/engine/6000.0/script-reference/unityengine/recttransformutility/screenpointtoray.md)                                         | Transforms a screen space position into a ray.                                                                                                                                                     |
| [ScreenPointToWorldPointInRectangle](/engine/6000.0/script-reference/unityengine/recttransformutility/screenpointtoworldpointinrectangle.md)     | Transform a screen space point to a position in world space that is on the plane of the given RectTransform.                                                                                       |
| [WorldToScreenPoint](/engine/6000.0/script-reference/unityengine/recttransformutility/worldtoscreenpoint.md)                                     | Transforms a position in world space into a screen space point.                                                                                                                                    |
