Show / Hide Table of Contents

Class RectTransformExtensions

Extensions for working with Unity UI RectTransforms
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.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Jotunn
Assembly: Jotunn.dll
Syntax
public static class RectTransformExtensions

Methods

| Improve this Doc View Source

Overlaps(RectTransform, RectTransform)

Test if a RectTransform overlaps another RectTransform in world space
Declaration
public static bool Overlaps(this RectTransform a, RectTransform b)
Parameters
Type Name Description
RectTransform a
RectTransform b
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Overlaps(RectTransform, RectTransform, Boolean)

Test if a RectTransform overlaps another RectTransform in world space
Declaration
public static bool Overlaps(this RectTransform a, RectTransform b, bool allowInverse)
Parameters
Type Name Description
RectTransform a
RectTransform b
System.Boolean allowInverse
Returns
Type Description
System.Boolean
| Improve this Doc View Source

WorldRect(RectTransform)

Calculate the world rect of a RectTransform
Declaration
public static Rect WorldRect(this RectTransform rectTransform)
Parameters
Type Name Description
RectTransform rectTransform
Returns
Type Description
Rect
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾