Show / Hide Table of Contents

Class RectTransformUtility

Inheritance
Object
RectTransformUtility
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public sealed class RectTransformUtility

Methods

| Improve this Doc View Source

CalculateRelativeRectTransformBounds(Transform)

Declaration
public static Bounds CalculateRelativeRectTransformBounds(Transform trans)
Parameters
Type Name Description
Transform trans
Returns
Type Description
Bounds
| Improve this Doc View Source

CalculateRelativeRectTransformBounds(Transform, Transform)

Declaration
public static Bounds CalculateRelativeRectTransformBounds(Transform root, Transform child)
Parameters
Type Name Description
Transform root
Transform child
Returns
Type Description
Bounds
| Improve this Doc View Source

FlipLayoutAxes(RectTransform, Boolean, Boolean)

Declaration
public static void FlipLayoutAxes(RectTransform rect, bool keepPositioning, bool recursive)
Parameters
Type Name Description
RectTransform rect
Boolean keepPositioning
Boolean recursive
| Improve this Doc View Source

FlipLayoutOnAxis(RectTransform, Int32, Boolean, Boolean)

Declaration
public static void FlipLayoutOnAxis(RectTransform rect, int axis, bool keepPositioning, bool recursive)
Parameters
Type Name Description
RectTransform rect
Int32 axis
Boolean keepPositioning
Boolean recursive

PixelAdjustPoint(Vector2, Transform, Canvas)

Declaration
public static Vector2 PixelAdjustPoint(Vector2 point, Transform elementTransform, Canvas canvas)
Parameters
Type Name Description
Vector2 point
Transform elementTransform
Canvas canvas
Returns
Type Description
Vector2

PixelAdjustRect(RectTransform, Canvas)

Declaration
public static Rect PixelAdjustRect(RectTransform rectTransform, Canvas canvas)
Parameters
Type Name Description
RectTransform rectTransform
Canvas canvas
Returns
Type Description
Rect
| Improve this Doc View Source

RectangleContainsScreenPoint(RectTransform, Vector2)

Declaration
public static bool RectangleContainsScreenPoint(RectTransform rect, Vector2 screenPoint)
Parameters
Type Name Description
RectTransform rect
Vector2 screenPoint
Returns
Type Description
Boolean
| Improve this Doc View Source

RectangleContainsScreenPoint(RectTransform, Vector2, Camera)

Declaration
public static bool RectangleContainsScreenPoint(RectTransform rect, Vector2 screenPoint, Camera cam)
Parameters
Type Name Description
RectTransform rect
Vector2 screenPoint
Camera cam
Returns
Type Description
Boolean
| Improve this Doc View Source

ScreenPointToLocalPointInRectangle(RectTransform, Vector2, Camera, out Vector2)

Declaration
public static bool ScreenPointToLocalPointInRectangle(RectTransform rect, Vector2 screenPoint, Camera cam, out Vector2 localPoint)
Parameters
Type Name Description
RectTransform rect
Vector2 screenPoint
Camera cam
Vector2 localPoint
Returns
Type Description
Boolean
| Improve this Doc View Source

ScreenPointToRay(Camera, Vector2)

Declaration
public static Ray ScreenPointToRay(Camera cam, Vector2 screenPos)
Parameters
Type Name Description
Camera cam
Vector2 screenPos
Returns
Type Description
Ray
| Improve this Doc View Source

ScreenPointToWorldPointInRectangle(RectTransform, Vector2, Camera, out Vector3)

Declaration
public static bool ScreenPointToWorldPointInRectangle(RectTransform rect, Vector2 screenPoint, Camera cam, out Vector3 worldPoint)
Parameters
Type Name Description
RectTransform rect
Vector2 screenPoint
Camera cam
Vector3 worldPoint
Returns
Type Description
Boolean
| Improve this Doc View Source

WorldToScreenPoint(Camera, Vector3)

Declaration
public static Vector2 WorldToScreenPoint(Camera cam, Vector3 worldPoint)
Parameters
Type Name Description
Camera cam
Vector3 worldPoint
Returns
Type Description
Vector2

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX