AnimationCurve

AnimationCurve

2024.3.15

yisky

Constructors

Properties

interpolationMode: InterpolationMode = InterpolationMode.Linear

The interpolation mode for the animation curve.

AnimationCurve

postWrapMode: WrapMode = WrapMode.Clamp

The behaviour of the animation after the first keyframe.

AnimationCurve

preWrapMode: WrapMode = WrapMode.Clamp

The behaviour of the animation before the first keyframe.

AnimationCurve

Accessors

Methods

  • Add a keyframe

    Parameters

    Returns void

    AnimationCurve

  • Clear all keyframes

    Returns void

    AnimationCurve

  • Evaluate value

    Parameters

    • time: number

    Returns number

    AnimationCurve

  • Remove a keyframe

    Parameters

    • index: number

    Returns void

    AnimationCurve

  • Serialize

    Returns {
        [key: string]: any;
    }

    • [key: string]: any

    AnimationCurve

  • Deserialize

    Parameters

    • json: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns AnimationCurve

    AnimationCurve