Class RectTransformUtility
Inheritance
RectTransformUtility
Assembly: UnityEngine.dll
public sealed class RectTransformUtility
Methods
|
Improve this Doc
View Source
Declaration
public static Bounds CalculateRelativeRectTransformBounds(Transform trans)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Bounds CalculateRelativeRectTransformBounds(Transform root, Transform child)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static void FlipLayoutAxes(RectTransform rect, bool keepPositioning, bool recursive)
Parameters
|
Improve this Doc
View Source
Declaration
public static void FlipLayoutOnAxis(RectTransform rect, int axis, bool keepPositioning, bool recursive)
Parameters
Declaration
public static Vector2 PixelAdjustPoint(Vector2 point, Transform elementTransform, Canvas canvas)
Parameters
Returns
Declaration
public static Rect PixelAdjustRect(RectTransform rectTransform, Canvas canvas)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool RectangleContainsScreenPoint(RectTransform rect, Vector2 screenPoint)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool RectangleContainsScreenPoint(RectTransform rect, Vector2 screenPoint, Camera cam)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool ScreenPointToLocalPointInRectangle(RectTransform rect, Vector2 screenPoint, Camera cam, out Vector2 localPoint)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Ray ScreenPointToRay(Camera cam, Vector2 screenPos)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool ScreenPointToWorldPointInRectangle(RectTransform rect, Vector2 screenPoint, Camera cam, out Vector3 worldPoint)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Vector2 WorldToScreenPoint(Camera cam, Vector3 worldPoint)
Parameters
Returns
Extension Methods