Table of Contents

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
object
Object
Component
Behaviour
MonoBehaviour
FlexalonAnimatorDriver

Properties

Node

The Flexalon node for this GameObject.

public IFlexalonNode Node { get; }

Property Value

IFlexalonNode

Stagger

How children's transitions are ordered and delayed.

public FlexalonStaggerSettings Stagger { get; set; }

Property Value

FlexalonStaggerSettings

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

FlexalonVisibleTrigger

Methods

TransitionTo(string)

Transitions all child animators to a state, staggered by the Stagger settings.

public void TransitionTo(string state)

Parameters

state string

The 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

state string

The state to transition to, such as Visible or Hidden.

reverse bool

Whether to play the stagger in the opposite order.