Class FlexalonAnimatorDriver
- Namespace
- Flexalon
- Assembly
- Flexalon.dll
Plays transitions on the Flexalon Animators of this object's children together, staggering them over time. Optionally plays each child's entrance as it enters a viewport.
[AddComponentMenu("Flexalon/Flexalon Animator Driver")]
public class FlexalonAnimatorDriver : MonoBehaviour
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourFlexalonAnimatorDriver
Properties
Node
The Flexalon node for this GameObject.
public IFlexalonNode Node { get; }
Property Value
Stagger
How children's transitions are ordered and delayed.
public FlexalonStaggerSettings Stagger { get; set; }
Property Value
Viewport
Optional bounds for automatic entrances. Explicit TransitionTo calls bypass the viewport.
public GameObject Viewport { get; set; }
Property Value
- GameObject
VisibleAxis
The forward direction through the children, in this driver's local space. Used when VisibleTrigger is EnterViewportAlongAxis.
public Vector3 VisibleAxis { get; set; }
Property Value
- Vector3
VisibleTrigger
When to play a child's entrance as it enters the Viewport.
public FlexalonVisibleTrigger VisibleTrigger { get; set; }
Property Value
Methods
TransitionTo(string)
Transitions all child animators to a state, staggered by the Stagger settings.
public void TransitionTo(string state)
Parameters
statestringThe state to transition to, such as Visible or Hidden.
TransitionTo(string, bool)
Transitions all child animators to a state, staggered by the Stagger settings.
public void TransitionTo(string state, bool reverse)
Parameters
statestringThe state to transition to, such as Visible or Hidden.
reverseboolWhether to play the stagger in the opposite order.