Show / Hide Table of Contents

Class RectTransformExtensions

Unity RectTransform extension methods.

Inheritance
System.Object
RectTransformExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: StansAssets.Foundation.Extensions
Assembly: cs.temp.dll.dll
Syntax
public static class RectTransformExtensions

Methods

GetScreenRect(RectTransform)

Get's the screen rect of provided RectTransform.

Declaration
public static Rect GetScreenRect(this RectTransform rectTransform)
Parameters
Type Name Description
RectTransform rectTransform

RectTransform to operate with.

Returns
Type Description
Rect

Screen rect.

Reset(RectTransform)

Resets anchorMin, anchorMax, offsetMin, offsetMax to Vector2.zero.

Declaration
public static void Reset(this RectTransform rectTransform)
Parameters
Type Name Description
RectTransform rectTransform

RectTransform to operate with.

In This Article
Back to top Generated by DocFX