Search Results for

    Show / Hide Table of Contents

    Class FlexalonShapeLayout

    Use a shape layout to position children in a shape formation with a specified number of sides. The first child is placed in the center, and subsequent children are placed in concentric layers around the center, with each layer forming the desired shape.

    Inheritance
    object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    FlexalonComponent
    LayoutBase
    FlexalonShapeLayout
    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 Shape Layout")]
    [HelpURL("https://www.flexalon.com/docs/shapeLayout")]
    public class FlexalonShapeLayout : LayoutBase, Layout

    Properties

    Plane

    Determines on which plane to create the shape.

    Declaration
    public Plane Plane { get; set; }
    Property Value
    Type Description
    Plane

    PlaneAlign

    Determines how each child aligns within the size of the parent along the axis perpendicular to the Plane

    Declaration
    public Align PlaneAlign { get; set; }
    Property Value
    Type Description
    Align

    ShapeRotationDegrees

    Rotates the shape around the specified Plane without rotating the children.

    Declaration
    public float ShapeRotationDegrees { get; set; }
    Property Value
    Type Description
    float

    Sides

    Determines how many sides the shape should have.

    Declaration
    public int Sides { get; set; }
    Property Value
    Type Description
    int

    Spacing

    Determines the space between each layer of the shape.

    Declaration
    public float Spacing { get; set; }
    Property Value
    Type Description
    float

    Methods

    Arrange(FlexalonNode, Vector3)

    Position the children of node within the available bounds.

    Declaration
    public override void Arrange(FlexalonNode node, Vector3 layoutSize)
    Parameters
    Type Name Description
    FlexalonNode node
    UnityEngine.Vector3 layoutSize
    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