Class RectTransformExtensions
RectTransform extension methods.
Inheritance
System.Object
RectTransformExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Pelican7.UIGraph
Assembly: UI Graph API Documentation Project.dll
Syntax
public static class RectTransformExtensions
Methods
Add(RectTransform, CanvasView)
Convenience for adding a CanvasView as a child of a RectTransform.
Declaration
public static void Add(this RectTransform parent, CanvasView canvasView)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.RectTransform | parent | |
CanvasView | canvasView |
FillParent(RectTransform)
Make a RectTransform fill its parent.
Declaration
public static void FillParent(this RectTransform rectTransform)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.RectTransform | rectTransform |
LerpUnclamped(RectTransform, RectTransform, RectTransform, Single)
Interpolate between two RectTransform components.
Declaration
public static void LerpUnclamped(this RectTransform target, RectTransform from, RectTransform to, float progress01)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.RectTransform | target | |
UnityEngine.RectTransform | from | |
UnityEngine.RectTransform | to | |
System.Single | progress01 |