Class FlexalonAlignLayout
Use a align layout to align all children to the parent on the specified axes. For example, use a align layout to place all children along a floor, wall, or edge.
Once aligned, you can adjust the position, rotation, or size of each child by editing the Offset, Rotation, Size, and Scale properties on that child's Flexalon Object Component.
Inheritance
Implements
Inherited Members
Syntax
[AddComponentMenu("Flexalon/Flexalon Align Layout")]
[HelpURL("https://www.flexalon.com/docs/alignLayout")]
public class FlexalonAlignLayout : LayoutBase, Layout
Properties
DepthAlign
The depth alignment in the size of the layout.
Declaration
public Align DepthAlign { get; set; }
Property Value
Type | Description |
---|---|
Align |
DepthPivot
The depth pivot in the size of each child.
Declaration
public Align DepthPivot { get; set; }
Property Value
Type | Description |
---|---|
Align |
HorizontalAlign
The horizontal alignment in the size of the layout.
Declaration
public Align HorizontalAlign { get; set; }
Property Value
Type | Description |
---|---|
Align |
HorizontalPivot
The horizontal pivot in the size of each child.
Declaration
public Align HorizontalPivot { get; set; }
Property Value
Type | Description |
---|---|
Align |
VerticalAlign
The vertical alignment in the size of the layout.
Declaration
public Align VerticalAlign { get; set; }
Property Value
Type | Description |
---|---|
Align |
VerticalPivot
The vertical pivot in the size of each child.
Declaration
public Align VerticalPivot { get; set; }
Property Value
Type | Description |
---|---|
Align |
Methods
Arrange(FlexalonNode, Vector3)
Position the children of node within the available bounds.
Declaration
public override void Arrange(FlexalonNode node, Vector3 size)
Parameters
Type | Name | Description |
---|---|---|
FlexalonNode | node | |
UnityEngine.Vector3 | size |
Overrides
Measure(FlexalonNode, Vector3, Vector3, Vector3)
Perform minimal work to determine what the size of node and available size for node's children.
Declaration
public override Bounds Measure(FlexalonNode node, Vector3 size, Vector3 min, Vector3 max)
Parameters
Type | Name | Description |
---|---|---|
FlexalonNode | node | |
UnityEngine.Vector3 | size | |
UnityEngine.Vector3 | min | |
UnityEngine.Vector3 | max |
Returns
Type | Description |
---|---|
UnityEngine.Bounds |