Search Results for

    Show / Hide Table of Contents

    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
    object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    FlexalonComponent
    LayoutBase
    FlexalonAlignLayout
    Implements
    Layout
    Inherited Members
    LayoutBase.DoOnEnable()
    LayoutBase.DoOnDisable()
    LayoutBase.ResetProperties()
    LayoutBase.Initialize()
    LayoutBase.SetChildrenFillShrinkSize(FlexalonNode, Vector3, Vector3)
    FlexalonComponent._node
    FlexalonComponent.Node
    FlexalonComponent.MarkDirty()
    FlexalonComponent.ForceUpdate()
    FlexalonComponent.UpdateProperties()
    FlexalonComponent.DoUpdate()
    FlexalonComponent.Upgrade(int)
    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
    LayoutBase.Arrange(FlexalonNode, Vector3)

    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
    Overrides
    LayoutBase.Measure(FlexalonNode, Vector3, Vector3, Vector3)

    Implements

    Layout
    In This Article
    Back to top Flexalon 3D Layouts