RectTransformExtensions Class |
Inheritance Hierarchy SystemObject frame8.Logic.Misc.Other.ExtensionsRectTransformExtensions
Namespace:
frame8.Logic.Misc.Other.Extensions
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static class RectTransformExtensions
The RectTransformExtensions type exposes the following members.
Methods
| Name | Description |
---|
| ConvertLocalPointToPointNormalizedBySize |
Takes local point in rt
And returns a vector which has:
x: 0=left, 1=right
y: 0=bottom, 1=top
|
| ConvertPointNormalizedBySizeToLocalPoint |
Takes a vector which has:
x: 0=left, 1=right
y: 0=bottom, 1=top
And returns it as local point in rt |
| GetBottomLeftCornerDisplacementFromParentBottomLeftCorner | Only tested with overlay canvases. It assumes it haves a parent |
| GetInsetFromParentBottomEdge(RectTransform, RectTransform) | |
| GetInsetFromParentBottomEdge(RectTransform, Vector2, Rect) | |
| GetInsetFromParentEdge |
It assumes the transform has a parent
|
| GetInsetFromParentLeftEdge(RectTransform, RectTransform) | |
| GetInsetFromParentLeftEdge(RectTransform, Vector2, Rect) | |
| GetInsetFromParentRightEdge(RectTransform, RectTransform) | |
| GetInsetFromParentRightEdge(RectTransform, Vector2, Rect) | |
| GetInsetFromParentTopEdge(RectTransform, RectTransform) | |
| GetInsetFromParentTopEdge(RectTransform, Vector2, Rect) | |
| IsLocalPointInRect | |
| MatchParentSize | |
| SetInsetAndSizeFromParentBottomEdgeWithCurrentAnchors | |
| SetInsetAndSizeFromParentEdgeWithCurrentAnchors | Same as RectTransform's built-in method, but this preserves the anchors |
| SetInsetAndSizeFromParentLeftEdgeWithCurrentAnchors | |
| SetInsetAndSizeFromParentRightEdgeWithCurrentAnchors | |
| SetInsetAndSizeFromParentTopEdgeWithCurrentAnchors | |
| SetSizeFromParentEdgeWithCurrentAnchors | Optimized version of SetSizeFromParentEdgeWithCurrentAnchors(RectTransform.Edge fixedEdge, float newSize) when parent is known |
TopVersion Information Optimized ScrollView Adapter
Supported in: 4.1
See Also