Table of Contents

Class FlexalonConstraint

Namespace
Flexalon
Assembly
Flexalon.dll

The Flexalon Constraint component positions its gameObject relative to a target, which can be any other gameObject. The constrained object or the target can also have layout components, which provides a powerful way to combine layouts together.

public class FlexalonConstraint : FlexalonComponent, Constraint
Inheritance
object
FlexalonConstraint
Implements
Inherited Members

Properties

DepthAlign

Determines how the depth axis aligns to the target's box.

public Align DepthAlign { get; set; }

Property Value

Align

DepthPivot

Determines how the depth axis aligns to this object's box.

public Align DepthPivot { get; set; }

Property Value

Align

HorizontalAlign

Determines how the horizontal axis aligns to the target's box.

public Align HorizontalAlign { get; set; }

Property Value

Align

HorizontalPivot

Determines how the horizontal axis aligns to this object's box.

public Align HorizontalPivot { get; set; }

Property Value

Align

Target

Which gameObject to constrain to. The position depends on the Align and Pivot options (see below). The rotation is set to match the target's rotation. The available space is set to match the target's size. Set the width, height, and depth properties on the Flexalon Object Component to Parent to match the target's size.

public GameObject Target { get; set; }

Property Value

GameObject

VerticalAlign

Determines how the vertical axis aligns to the target's box.

public Align VerticalAlign { get; set; }

Property Value

Align

VerticalPivot

Determines how the vertical axis aligns to this object's box.

public Align VerticalPivot { get; set; }

Property Value

Align

Methods

Constrain(FlexalonNode)

Applies the constraint.

public void Constrain(FlexalonNode node)

Parameters

node FlexalonNode

DoUpdate()

Called when the component is updated.

public override void DoUpdate()

ResetProperties()

Called when the component is destroyed to reset properties on the FlexalonNode.

protected override void ResetProperties()

UpdateProperties()

Called when the component is enabled to apply properties to the FlexalonNode.

protected override void UpdateProperties()