Class ParticleEmitterFunction
Particle function graph asset that contains reusable part of the particle emitter graph.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Particles/ParticleEmitterFunction.h
Syntax
public class ParticleEmitterFunction : public BinaryAsset
Fields
Graph
The loaded CPU particle function graph.
Declaration
public ParticleEmitterGraphCPU Graph
Field Value
ParticleEmitterGraphCPU
|
GraphGPU
The loaded GPU particle function graph.
Declaration
public ParticleEmitterGraphGPU GraphGPU
Field Value
ParticleEmitterGraphGPU
|
Inputs
The input nodes (indices).
Declaration
public Array<int32, FixedAllocation<16>> Inputs
Field Value
Array<int32, FixedAllocation<16>>
|
Outputs
The output nodes (indices).
Declaration
public Array<int32, FixedAllocation<16>> Outputs
Field Value
Array<int32, 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()
Returns
BytesContainer
The output surface data, or empty if failed to load. |
LoadSurface(ParticleEmitterGraphCPU& graph, bool loadMeta=false)
Tries to load surface graph from the asset.
Declaration
public bool LoadSurface(ParticleEmitterGraphCPU& graph, bool loadMeta=false)
Parameters
ParticleEmitterGraphCPU
graph
The graph to load. |
bool
loadMeta
True if load metadata. |
Returns
bool
True if failed, otherwise false. |
LoadSurface(ParticleEmitterGraphGPU& graph)
Tries to load surface graph from the asset.
Declaration
public bool LoadSurface(ParticleEmitterGraphGPU& graph) const
Parameters
ParticleEmitterGraphGPU
graph
The graph to load. |
Returns
bool
True if failed, otherwise false. |
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 particle 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. |