A curved layout system
1 Overview
3 Methods
4 Usage
6 See also
Similar to the Horizontal and Vertical Layout components provided by Unity, this offers more control both vertically and horizontally with the ability to curve or bend the layout.
The properties of the Box Slider control are as follows:
Property | Description | |
---|---|---|
Curve Alignment | Based on which anchor should the curve apply. | |
Curve Offset | Vector 3 offset to apply to the curve. | |
Item Axis | The axis along which to place the items, Normalized before use. | |
Item Size | The size of each item along the Normalized axis. | |
Center Point | The slope can be moved by altering this setting, it could be constrained to the 0-1 range, but other values are useful for animations. |
Like with other Layout controls, simply add this to the parent RectTransform for a collection of child elements through the Add Component menu as follows: Add Component -> Layout -> Extensions -> Curved Layout.
Make sure to configure the Item Size, Offset and Axis to apply a curve, else child items will just collate.
tbc
Freezy