Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    AnimationCurve Class

    Namespace: Stride.Animations
    Assembly: Stride.Engine.dll

    Untyped base class for animation curves.

    System.Object → AnimationCurve
    Derived from AnimationCurve: AnimationCurve<T>

    [DataContract(Inherited = true)]
    public abstract class AnimationCurve
    Name Description
    Constructors
    AnimationCurve()
    Properties
    ElementSize

    Gets the size of keyframe values.

    ElementType

    Gets the type of keyframe values.

    InterpolationType

    Gets or sets the interpolation type.

    Keys
    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.

    ShiftKeys(CompressedTimeSpan)

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

    | Improve this Doc View Source

    Constructors


    AnimationCurve()

    protected AnimationCurve()
    | Improve this Doc View Source

    Properties


    ElementSize

    Gets the size of keyframe values.

    public abstract int ElementSize { get; }
    Property Value
    Type Description
    System.Int32

    The size of keyframe values.


    ElementType

    Gets the type of keyframe values.

    public abstract Type ElementType { get; }
    Property Value
    Type Description
    System.Type

    The type of keyframe values.


    InterpolationType

    Gets or sets the interpolation type.

    public AnimationCurveInterpolationType InterpolationType { get; set; }
    Property Value
    Type Description
    AnimationCurveInterpolationType

    The interpolation type.


    Keys

    public abstract IReadOnlyList<CompressedTimeSpan> Keys { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<CompressedTimeSpan>
    | Improve this Doc View Source

    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
    Type Name Description
    CompressedTimeSpan newTime

    The new time.

    System.IntPtr location

    The location.


    ShiftKeys(CompressedTimeSpan)

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

    public virtual void ShiftKeys(CompressedTimeSpan shiftTimeSpan)
    Parameters
    Type Name Description
    CompressedTimeSpan shiftTimeSpan

    The time span by which the keys should be shifted


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation