Search Results for

    Show / Hide Table of Contents

    Class Animation

    Asset that contains an animation spline represented by a set of keyframes, each representing an endpoint of a linear curve.

    Inheritance
    System.Object
    Object
    Asset
    BinaryAsset
    Animation
    Inherited Members
    BinaryAsset.Reimport()
    BinaryAsset.ImportPath
    Asset.Reload()
    Asset.WaitForLoaded(Double)
    Asset.GetReferences()
    Asset.Save(String)
    Asset.ToString()
    Asset.ReferencesCount
    Asset.Path
    Asset.IsLoaded
    Asset.LastLoadFailed
    Asset.IsVirtual
    Asset.ShouldDeleteFileOnUnload
    Asset.MemoryUsage
    Object.__unmanagedPtr
    Object.__internalId
    Object.Finalize()
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.Find<T>(Guid, Boolean)
    Object.Find(Guid, Type, Boolean)
    Object.TryFind<T>(Guid)
    Object.TryFind(Guid, Type)
    Object.Destroy(Object, Single)
    Object.DestroyNow(Object)
    Object.Destroy<T>(T, Single)
    Object.Equals(Object)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.FromUnmanagedPtr(IntPtr)
    Object.MapObjectID(Guid)
    Object.RemapObjectID(Guid)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public class Animation : BinaryAsset

    Constructors

    Animation()

    Initializes a new instance of the Animation.

    Declaration
    public Animation()

    Properties

    Duration

    Gets the duration of the animation (in frames).

    Declaration
    [Unmanaged]
    public float Duration { get; }
    Property Value
    System.Single

    FramesPerSecond

    Gets the amount of the animation frames per second.

    Declaration
    [Unmanaged]
    public float FramesPerSecond { get; }
    Property Value
    System.Single

    Info

    Gets the animation clip info.

    Declaration
    [Unmanaged]
    public Animation.InfoData Info { get; }
    Property Value
    Animation.InfoData

    Length

    Gets the length of the animation (in seconds).

    Declaration
    [Unmanaged]
    public float Length { get; }
    Property Value
    System.Single

    Methods

    LoadTimeline(out Byte[])

    Gets the animation as serialized timeline data. Used to show it in Editor.

    Declaration
    [Unmanaged]
    public void LoadTimeline(out byte[] result)
    Parameters
    System.Byte[] result

    The output timeline data container. Empty if failed to load.

    SaveTimeline(Byte[])

    Saves the serialized timeline data to the asset as animation.

    Declaration
    [Unmanaged]
    public bool SaveTimeline(byte[] data)
    Parameters
    System.Byte[] data

    The timeline data container.

    Returns
    System.Boolean

    true failed to save data; otherwise, false.

    Remarks

    This cannot be used by virtual assets.

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat