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
-
objectFlexalonConstraint
- Implements
- Inherited Members
Properties
DepthAlign
Determines how the depth axis aligns to the target's box.
public Align DepthAlign { get; set; }
Property Value
DepthPivot
Determines how the depth axis aligns to this object's box.
public Align DepthPivot { get; set; }
Property Value
HorizontalAlign
Determines how the horizontal axis aligns to the target's box.
public Align HorizontalAlign { get; set; }
Property Value
HorizontalPivot
Determines how the horizontal axis aligns to this object's box.
public Align HorizontalPivot { get; set; }
Property Value
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
VerticalPivot
Determines how the vertical axis aligns to this object's box.
public Align VerticalPivot { get; set; }
Property Value
Methods
Constrain(FlexalonNode)
Applies the constraint.
public void Constrain(FlexalonNode node)
Parameters
nodeFlexalonNode
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()