Class SceneAnimation
Scene animation timeline for animating objects and playing cut-scenes.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class SceneAnimation : BinaryAsset
Constructors
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
|
Remarks
It cannot be used by virtual assets.