[]
Anchors a LayoutRect to the top right corner and rotation angle of anchorRect.
The bottom left corner is not fixed and requires additional constraints.
public void AnchorTopRight(LayoutRect anchorRect, float paddingTop, float paddingRight)
| Type | Name | Description |
|---|---|---|
| LayoutRect | anchorRect | The referenced LayoutRect or null to reference the owner LayoutView. |
| float | paddingTop | The inner padding relative to the top side of the |
| float | paddingRight | The inner padding relative to the right side of the |
Anchors a LayoutRect to the top right corner and rotation angle of anchorRect and sets width/height.
public void AnchorTopRight(LayoutRect anchorRect, float paddingTop, float paddingRight, float width, float height)
| Type | Name | Description |
|---|---|---|
| LayoutRect | anchorRect | The referenced LayoutRect or null to reference the owner LayoutView. |
| float | paddingTop | The inner padding relative to the top side of the |
| float | paddingRight | The inner padding relative to the right side of the |
| float | width | The proposed width. |
| float | height | The proposed height. |