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 SourceOverlaps(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 |
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 |
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 |