Class FlexalonAnimationTrack
- Namespace
- Flexalon
- Assembly
- Flexalon.dll
Animates one property while a Flexalon Animator is in a state.
[Serializable]
public class FlexalonAnimationTrack
- Inheritance
-
objectFlexalonAnimationTrack
Fields
AnimateInWorldSpace
Whether to interpolate transform values in world space. Otherwise, they are interpolated in local space.
[Tooltip("Interpolate in world space, so the object moves smoothly even if its parent changes.")]
public bool AnimateInWorldSpace
Field Value
- bool
Component
The component to animate when Property is ComponentProperty.
[Tooltip("The component whose property is animated.")]
public Component Component
Field Value
- Component
ComponentProperty
The name of the property or field to animate on Component.
[Tooltip("The property or field to animate on the component.")]
public string ComponentProperty
Field Value
- string
Keyframes
The keyframes to play. A single keyframe holds a value; more keyframes repeat using WrapMode.
[SerializeReference]
[Tooltip("The keyframes to play. With more than one, the track repeats while the state is active.")]
public List<FlexalonAnimationKeyframe> Keyframes
Field Value
Property
The property to animate. See FlexalonAnimationProperty.
[Tooltip("The property this track animates.")]
public string Property
Field Value
- string
RotationInterpolation
How rotation tracks interpolate between keyframes.
[Tooltip("Interpolate each Euler angle separately, or along the shortest rotation.")]
public FlexalonAnimationRotationInterpolation RotationInterpolation
Field Value
WrapMode
How the keyframes repeat.
[Tooltip("Play the keyframes forward then backward, or restart from the first keyframe.")]
public FlexalonAnimationLoopMode WrapMode