[]
Adds a HorizontalCenter constraint relative to anchorRect.
public PositionConstraint SetHorizontalCenter(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)
Public Function SetHorizontalCenter(anchorRect As LayoutRect, anchorParam As AnchorParam, Optional offset As Single = 0) As PositionConstraint
| Type | Name | Description |
|---|---|---|
| LayoutRect | anchorRect | The referenced LayoutRect or null to reference the owner LayoutView. |
| AnchorParam | anchorParam | The source parameter of the |
| float | offset | An increment to the value of the source parameter. |
| Type | Description |
|---|---|
| PositionConstraint | New constraint just added. |
Adds a HorizontalCenter constraint relative to anchorPoint.
public PositionConstraint SetHorizontalCenter(AnchorPoint anchorPoint, float offset = 0)
Public Function SetHorizontalCenter(anchorPoint As AnchorPoint, Optional offset As Single = 0) As PositionConstraint
| Type | Name | Description |
|---|---|---|
| AnchorPoint | anchorPoint | The referenced AnchorPoint. |
| float | offset | An increment to the position of |
| Type | Description |
|---|---|
| PositionConstraint | New constraint just added. |