Class AnimationGraphFunction
Animation Graph function asset that contains reusable part of the anim graph.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Content/Assets/AnimationGraphFunction.h
Syntax
public class AnimationGraphFunction : public BinaryAsset
Fields
GraphData
The loaded anim graph function graph data (serialized anim graph).
Declaration
public BytesContainer GraphData
Field Value
BytesContainer
|
Inputs
The input nodes.
Declaration
public Array<FunctionParameter, FixedAllocation<16>> Inputs
Field Value
Array<FunctionParameter, FixedAllocation<16>>
|
Outputs
The output nodes.
Declaration
public Array<FunctionParameter, FixedAllocation<16>> Outputs
Field Value
Array<FunctionParameter, FixedAllocation<16>>
|
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
GetSignature(Array<StringView, FixedAllocation<32>>& types, Array<StringView, FixedAllocation<32>>& names)
Declaration
public void GetSignature(Array<StringView, FixedAllocation<32>>& types, Array<StringView, FixedAllocation<32>>& names)
Parameters
Array<StringView, FixedAllocation<32>>
types
|
Array<StringView, FixedAllocation<32>>
names
|
load()
Load data from the chunks
Declaration
protected virtual LoadResult load() override
Returns
LoadResult
Loading result |
Overrides
LoadSurface()
Tries to load surface graph from the asset.
Declaration
public BytesContainer LoadSurface() const
Returns
BytesContainer
The output surface data, or 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
SaveSurface(const BytesContainer& data)
Updates the anim graph surface (save new one, discards cached data, reloads asset).
Declaration
public bool SaveSurface(const BytesContainer& data) const
Parameters
BytesContainer
data
The surface graph data. |
Returns
bool
True if cannot save it, otherwise false. |
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. |