Search Results for

    Show / Hide Table of Contents

    Class SceneAnimation

    Scene animation timeline for animating objects and playing cut-scenes.

    Inheritance
    System.Object
    Object
    Asset
    BinaryAsset
    SceneAnimation
    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 sealed class SceneAnimation : BinaryAsset

    Constructors

    SceneAnimation()

    Initializes a new instance of the SceneAnimation.

    Declaration
    public SceneAnimation()

    Properties

    Duration

    Gets the animation duration (in seconds).

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

    DurationFrames

    The animation duration (in frames).

    Declaration
    [Unmanaged]
    public int DurationFrames { get; }
    Property Value
    System.Int32

    FramesPerSecond

    The frames amount per second of the timeline animation.

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

    Methods

    LoadTimeline()

    Gets the serialized timeline data.

    Declaration
    [Unmanaged]
    public byte[] LoadTimeline()
    Returns
    System.Byte[]

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

    SaveTimeline(Byte[])

    Saves the serialized timeline data to the asset.

    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

    It 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