Table of Contents

Class FlexalonCurveAnimator

Namespace
Flexalon
Assembly
Flexalon.dll

The curve animator applies a curve the the position, rotation, and scale of the object. The curve is restarted each time the layout position changes. This is ideal for scenarios in which the layout position does not change often.

public class FlexalonCurveAnimator : MonoBehaviour, TransformUpdater
Inheritance
object
FlexalonCurveAnimator
Implements

Properties

AnimateInWorldSpace

Determines if the animation should be performed in world space.

public bool AnimateInWorldSpace { get; set; }

Property Value

bool

AnimatePosition

Determines if the position should be animated.

public bool AnimatePosition { get; set; }

Property Value

bool

AnimateRotation

Determines if the rotation should be animated.

public bool AnimateRotation { get; set; }

Property Value

bool

AnimateScale

Determines if the scale should be animated.

public bool AnimateScale { get; set; }

Property Value

bool

Curve

The curve to apply. Should begin at 0 and end at 1.

public AnimationCurve Curve { get; set; }

Property Value

AnimationCurve

Methods

PreUpdate(FlexalonNode)

Called before the layout system starts updating any transforms. Use this to capture the transform position.

public void PreUpdate(FlexalonNode node)

Parameters

node FlexalonNode

The node being updated.

UpdatePosition(FlexalonNode, Vector3)

Called to update the position of the object.

public bool UpdatePosition(FlexalonNode node, Vector3 position)

Parameters

node FlexalonNode

The node being updated.

position Vector3

The computed local position of the object.

Returns

bool

UpdateRectSize(FlexalonNode, Vector2)

Called to update the rect of the object.

public bool UpdateRectSize(FlexalonNode node, Vector2 size)

Parameters

node FlexalonNode

The node being updated.

size Vector2

Returns

bool

UpdateRotation(FlexalonNode, Quaternion)

Called to update the rotation of the object.

public bool UpdateRotation(FlexalonNode node, Quaternion rotation)

Parameters

node FlexalonNode

The node being updated.

rotation Quaternion

The computed local rotation of the object.

Returns

bool

UpdateScale(FlexalonNode, Vector3)

Called to update the scale of the object.

public bool UpdateScale(FlexalonNode node, Vector3 scale)

Parameters

node FlexalonNode

The node being updated.

scale Vector3

The computed local scale of the object.

Returns

bool