Table of Contents

Class AnimationCurve

Namespace
Stride.Animations
Assembly
Stride.Engine.dll

Untyped base class for animation curves.

[DataContract(Inherited = true)]
public abstract class AnimationCurve
Inheritance
AnimationCurve
Derived

Constructors

AnimationCurve()

protected AnimationCurve()

Properties

ElementSize

Gets the size of keyframe values.

public abstract int ElementSize { get; }

Property Value

int

The size of keyframe values.

ElementType

Gets the type of keyframe values.

public abstract Type ElementType { get; }

Property Value

Type

The type of keyframe values.

InterpolationType

Gets or sets the interpolation type.

public AnimationCurveInterpolationType InterpolationType { get; set; }

Property Value

AnimationCurveInterpolationType

The interpolation type.

Keys

public abstract IReadOnlyList<CompressedTimeSpan> Keys { get; }

Property Value

IReadOnlyList<CompressedTimeSpan>

Methods

AddValue(CompressedTimeSpan, IntPtr)

Writes a new value at the end of the curve (used for building curves). It should be done in increasing order as it will simply add a new key at the end of KeyFrames.

public abstract void AddValue(CompressedTimeSpan newTime, IntPtr location)

Parameters

newTime CompressedTimeSpan

The new time.

location IntPtr

The location.

ShiftKeys(CompressedTimeSpan)

Shifts all animation keys by the specified time, adding it to all KeyFrameData.Time

public virtual void ShiftKeys(CompressedTimeSpan shiftTimeSpan)

Parameters

shiftTimeSpan CompressedTimeSpan

The time span by which the keys should be shifted