Class SceneAnimation
Scene animation timeline for animating objects and playing cut-scenes.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Animations/SceneAnimations/SceneAnimation.h
Syntax
public class SceneAnimation : public BinaryAsset
Fields
DurationFrames
The animation duration (in frames).
Declaration
public int32 DurationFrames
Field Value
|
int32
|
FramesPerSecond
The frames amount per second of the timeline animation.
Declaration
public float FramesPerSecond
Field Value
|
float
|
Tracks
The tracks on the system timeline.
Declaration
public Array<Track> Tracks
Field Value
|
Array<Track>
|
TrackStatesCount
The amount of per-track state information required to allocate for this animation (including nested tracks).
Declaration
public int32 TrackStatesCount
Field Value
|
int32
|
Methods
getChunksToPreload()
Gets packed chunks indices to preload before asset loading action
Declaration
protected virtual AssetChunksFlag getChunksToPreload() const override
Returns
|
AssetChunksFlag
Chunks to load flags |
Overrides
GetDuration()
Gets the animation duration (in seconds).
Declaration
public float GetDuration() const
Returns
|
float
|
GetReferences(Array<Guid>& assets, Array<String>& files)
Declaration
public void GetReferences(Array<Guid>& assets, Array<String>& files) const override
Parameters
|
Array<Guid>
assets
|
|
Array<String>
files
|
load()
Load data from the chunks
Declaration
protected virtual LoadResult load() override
Returns
|
LoadResult
Loading result |
Overrides
LoadTimeline()
Gets the serialized timeline data.
Declaration
public BytesContainer LoadTimeline()
Returns
|
BytesContainer
The output timeline data container. Empty if failed to load. |
Save(const StringView& path=StringView::Empty)
Saves this asset to the file. Supported only in Editor.
Declaration
public virtual bool Save(const StringView& path=StringView::Empty) override
Parameters
|
StringView
path
The custom asset path to use for the saving. Use empty value to save this asset to its own storage location. Can be used to duplicate asset. Must be specified when saving virtual asset. |
Returns
|
bool
True when cannot save data, otherwise false. |
Overrides
SaveTimeline(const BytesContainer& data)
Saves the serialized timeline data to the asset.
It cannot be used by virtual assets.
Declaration
public bool SaveTimeline(const BytesContainer& data) const
Parameters
|
BytesContainer
data
The timeline data container. |
Returns
|
bool
|
unload(bool isReloading)
Unloads asset data
Declaration
protected virtual void unload(bool isReloading) override
Parameters
|
bool
isReloading
True if asset is reloading data, otherwise false. |