RectTransformExtensions Methods |
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 | |
  | GetInsetFromParentEdge |
It assumes the transform has a parent
|
  | GetInsetFromParentLeftEdge | |
  | GetInsetFromParentRightEdge | |
  | GetInsetFromParentTopEdge | |
  | IsLocalPointInRect | |
  | MatchParentSize | |
  | SetInsetAndSizeFromParentBottomEdgeWithCurrentAnchors | |
  | SetInsetAndSizeFromParentEdgeWithCurrentAnchors(RectTransform, Edge, Single, Single) | NOTE: Use the optimized version if parent is known |
  | SetInsetAndSizeFromParentEdgeWithCurrentAnchors(RectTransform, RectTransform, Edge, Single, Single) | Optimized version of SetInsetAndSizeFromParentEdgeWithCurrentAnchors(RectTransform.Edge fixedEdge, float newInset, float newSize) when parent is known |
  | SetInsetAndSizeFromParentLeftEdgeWithCurrentAnchors | |
  | SetInsetAndSizeFromParentRightEdgeWithCurrentAnchors | |
  | SetInsetAndSizeFromParentTopEdgeWithCurrentAnchors | |
  | SetSizeFromParentEdgeWithCurrentAnchors | Optimized version of SetSizeFromParentEdgeWithCurrentAnchors(RectTransform.Edge fixedEdge, float newSize) when parent is known |
Top
See Also