class

VfxGraphAsset

.mvfx — a particle emitter authored as a node graph across Emitter / Spawn / Update / Render stages. MDF-backed Asset. The graph compiles to the same runtime emitter config a property-authored .mparticle produces, so a graph drives the identical CPU/GPU simulation and renderer.

Module
AssetSystem
Header
#include "AssetSystem/Assets/VfxGraphAsset.h"
Namespace
Mowo

Constructors

SignatureNameDescription
VfxGraphAsset()VfxGraphAsset
~VfxGraphAsset() override~VfxGraphAsset

Public functions

ReturnsNameDescription
boolLoad
voidUnload
boolSaveToFile
std::stringSerializeToString
boolLoadFromString
voidCollectDependencyIDs
voidCollectDependencyPaths
FVfxGraph&Graph
const FVfxGraph&Graph
int32_tGetActiveEmitterThe emitter of the system the editor is showing (0 = the first, the graph itself; n = extra emitter n-1).
voidSetActiveEmitter
FVfxGraph&ActiveGraph
const FVfxGraph&ActiveGraph
FVfxGraphNode*FindNodeNode editing surface used by the editor panel, on the active emitter.
std::stringAddNode
voidRemoveNode
boolConnect
voidDisconnect
voidAddEmitterAdds an extra emitter (the starter graph under a fresh name) and makes it active; removes the active extra emitter (the first cannot be removed).
boolRemoveActiveEmitter
std::stringRenameActiveEmitterRenames the active emitter, keeping names unique, and repoints every SubEmitter node in the system that named it.
boolCompileCompile to the runtime emitter config (module list + settings).
boolApplyToCompile then push onto a live emitter component, ready to simulate.
voidEnsureDefaultPopulate a starter graph (Emitter -> SpawnRate/Burst -> Initialize -> Shape -> Velocity -> Color -> Render) matching the default emitter.
voidFromParticleAssetRebuild the graph so it represents an existing property-authored emitter.

Function details

VfxGraphAsset

C++
VfxGraphAsset()

~VfxGraphAsset

C++
~VfxGraphAsset() override

Load

C++
bool Load(const std::string& path) override

Unload

C++
void Unload() override

SaveToFile

C++
bool SaveToFile(const std::string& path) const

SerializeToString

C++
std::string SerializeToString() const

LoadFromString

C++
bool LoadFromString(const std::string& source)

CollectDependencyIDs

C++
void CollectDependencyIDs(std::vector<UUID>& out) const override

CollectDependencyPaths

C++
void CollectDependencyPaths(std::vector<std::string>& out) const override

Graph

C++
FVfxGraph& Graph()

Graph

C++
const FVfxGraph& Graph() const

GetActiveEmitter

C++
int32_t GetActiveEmitter() const

The emitter of the system the editor is showing (0 = the first, the graph itself; n = extra emitter n-1). Editor state, never saved.

SetActiveEmitter

C++
void SetActiveEmitter(int32_t index)

ActiveGraph

C++
FVfxGraph& ActiveGraph()

ActiveGraph

C++
const FVfxGraph& ActiveGraph() const

FindNode

C++
FVfxGraphNode* FindNode(const std::string& id)

Node editing surface used by the editor panel, on the active emitter.

AddNode

C++
std::string AddNode(EVfxStage stage, const std::string& moduleType, float x, float y)

RemoveNode

C++
void RemoveNode(const std::string& id)

Connect

C++
bool Connect(const std::string& from, const std::string& to)

Disconnect

C++
void Disconnect(const std::string& from, const std::string& to)

AddEmitter

C++
void AddEmitter()

Adds an extra emitter (the starter graph under a fresh name) and makes it active; removes the active extra emitter (the first cannot be removed).

RemoveActiveEmitter

C++
bool RemoveActiveEmitter()

RenameActiveEmitter

C++
std::string RenameActiveEmitter(const std::string& name)

Renames the active emitter, keeping names unique, and repoints every SubEmitter node in the system that named it. Returns the name it got.

Compile

C++
bool Compile(FVfxEmitterConfig& out) const

Compile to the runtime emitter config (module list + settings).

ApplyTo

C++
bool ApplyTo(ParticleEmitterComponent& emitter) const

Compile then push onto a live emitter component, ready to simulate.

EnsureDefault

C++
void EnsureDefault()

Populate a starter graph (Emitter -> SpawnRate/Burst -> Initialize -> Shape -> Velocity -> Color -> Render) matching the default emitter.

FromParticleAsset

C++
void FromParticleAsset(const ParticleAsset& asset)

Rebuild the graph so it represents an existing property-authored emitter.

Generated from AssetSystem/Assets/VfxGraphAsset.h via assetsystem.json · Nov 4, 2026Version 1.0.0