StateContainer Class

Definition

Container class for an Interactive State in the StateVisualizer component. Each state container maps to an Interactive State in an attached Interactive Element component.

public ref class StateContainer
[System.Serializable]
public class StateContainer
[<System.Serializable>]
type StateContainer = class
Public Class StateContainer
Inheritance
StateContainer
Attributes

Constructors

StateContainer(String)

The state container constructor.

Properties

AnimationClip

The Animation Clip for this state container. Keyframes for this animation clip can be modified via the Unity Animation Window OR via this inspector by adding a new animation target.

AnimationTargets

The list of animation targets for this state container. Each animation target contains a list of animatable properties.

NOTE: Once a target is added, the keyframes for the animation clip for this state container will be overwritten by the state animatable properties.

AnimationTransitionDuration

The time in seconds for the animation transition between states.

StateName

The name of the state this container. This state container name is the same as the state name of the associated Interactive State in Interactive Element.

Applies to