Class FlexalonCurveAnimator
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.
Inheritance
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
FlexalonCurveAnimator
Syntax
[AddComponentMenu("Flexalon/Flexalon Curve Animator")]
[HelpURL("https://www.flexalon.com/docs/animators")]
public class FlexalonCurveAnimator : MonoBehaviour, TransformUpdater
Properties
AnimateInWorldSpace
Determines if the animation should be performed in world space.
Declaration
public bool AnimateInWorldSpace { get; set; }
Property Value
AnimatePosition
Determines if the position should be animated.
Declaration
public bool AnimatePosition { get; set; }
Property Value
AnimateRotation
Determines if the rotation should be animated.
Declaration
public bool AnimateRotation { get; set; }
Property Value
AnimateScale
Determines if the scale should be animated.
Declaration
public bool AnimateScale { get; set; }
Property Value
Curve
The curve to apply. Should begin at 0 and end at 1.
Declaration
public AnimationCurve Curve { get; set; }
Property Value
Type |
Description |
UnityEngine.AnimationCurve |
|
Methods
PreUpdate(FlexalonNode)
Declaration
public void PreUpdate(FlexalonNode node)
Parameters
UpdatePosition(FlexalonNode, Vector3)
Declaration
public bool UpdatePosition(FlexalonNode node, Vector3 position)
Parameters
Type |
Name |
Description |
FlexalonNode |
node |
|
UnityEngine.Vector3 |
position |
|
Returns
UpdateRectSize(FlexalonNode, Vector2)
Declaration
public bool UpdateRectSize(FlexalonNode node, Vector2 size)
Parameters
Type |
Name |
Description |
FlexalonNode |
node |
|
UnityEngine.Vector2 |
size |
|
Returns
UpdateRotation(FlexalonNode, Quaternion)
Declaration
public bool UpdateRotation(FlexalonNode node, Quaternion rotation)
Parameters
Type |
Name |
Description |
FlexalonNode |
node |
|
UnityEngine.Quaternion |
rotation |
|
Returns
UpdateScale(FlexalonNode, Vector3)
Declaration
public bool UpdateScale(FlexalonNode node, Vector3 scale)
Parameters
Type |
Name |
Description |
FlexalonNode |
node |
|
UnityEngine.Vector3 |
scale |
|
Returns
Implements