UI Hand Layout¶
Lays out all direct children RectTransforms of the object in a curved fan. Useful for hands, inventories, selection bars.
Rebuild happens automatically when children change. You can also call NotifyLayoutChanged() from code after spawning or removing cards.
Inspector¶
| Field | Type | Description |
|---|---|---|
| radius | float | Arc radius in pixels from center to each card. |
| totalAngle | float | Total arc angle in degrees. 0 is a straight line, 180 is a half circle. |
| rotateWithArc | bool | |
| invertRotation | bool | |
| invertY | bool | |
| useSiblingOrder | bool | |
| perItemExtraAngle | float | |
| adaptiveSpread | bool | |
| cardsForFullSpread | int | |
| minAngle | float | |
| useBottomBaseline | bool | |
| baselinePadding | float | Extra vertical offset to push the baseline down/up. |
| smooth | bool | If enabled, animates towards the target positions/rotations. |
| smoothSpeed | float | Lerp speed used while smoothing. |
Public API¶
| Method | Returns |
|---|---|
| RebuildList | void |
| NotifyLayoutChanged | void |