💥How to set up VFX
A visual effect is a resource, then a node. Create a .vfx.json definition, edit it in the VFX Editor, then place a VFX Node in the scene that points at that file.
When the agent adds fire, sparks, or rain, it is doing those two things. Select the node and read vfxPath to see which definition it uses.
This is not the View menu. Show VFX only previews effects that are already in the scene. See How to Turn On Grid VFX and Skybox.
Definition vs VFX Node
VFX definition
A .vfx.json file (ENGINE.VFXDefinition)
Asset panel → right-click → New Resource → VFX
VFX Node
A scene node (ENGINE.VFXNode) that plays that file
Outliner plus → Component → VFX Node, then set vfxPath
Two VFX Nodes can share one definition. Edit fire.vfx.json and every node that points at it updates.
The file can live anywhere under assets/. Convention is assets/VFX/.
Open the VFX Editor
Double-click the .vfx.json. A preview viewport opens with a Restart control, and two tabs:
Particles
How each particle looks (shape, blend, billboard, fade, gravity, optional alpha texture)
Emitters
How they spawn (loop, duration, count, lifetime, size, speed, direction)
A new file starts with Particles (1) and Emitters (1). The emitter’s Particle System field points at Particle System 0.
Configure the emitter
On Emitters, select Emitter 0. These are the fields a new definition ships with:
Loop — on for a torch or weather; off for a one-shot hit
Duration — length of one emission cycle, in seconds
Delay — wait before the first cycle
Spawn Mode —
time(stream) orburst(all at once)Particles Per Cycle — how many spawn in that cycle
Particle Lifetime, Size, and Speed — each a min and max range
Press Restart in the preview after you change a value.
Place a VFX Node in the scene
Return to the scene. Select the plus button in the Outliner, choose Component, and add VFX Node.
Select the node. Set vfxPath to the definition, for example @project/assets/models/fire.vfx.json.
autoStart is on by default. The effect plays in Play mode without extra wiring.
When to use VFX
Looping local effect (torch, steam, campfire) — Loop on, spawn mode
time, parent the VFX Node to the prop or put both in a prefab.One-shot impact (hit sparks, explosion puff) — Loop off, spawn mode
burst. Start it from gameplay when the hit happens.Weather (rain, snow) — a large looping emitter. Keep particle counts in check; see Performance & optimization.
Same setup more than twice → save the VFX Node (and its parent) as a prefab. See How to Set Up a Prefab.
Common mistakes
Created a .vfx.json and nothing appeared in the scene
The definition is not a scene object. Add a VFX Node and set vfxPath.
Turned on Show VFX and still saw nothing
There is no VFX Node yet, or vfxPath is empty. Show VFX only previews placed nodes.
Expected a Shader or a material to make particles
Particles are a VFX definition. Materials go on meshes. See How to set up materials.
Dropped a gif or sprite sheet into VFX/ and treated it as an effect
Those are textures or sequences. A playable effect is a .vfx.json plus a VFX Node.
What You've Done
You can create a VFX definition, edit particles and emitters, and play it in the scene with a VFX Node. Next: wrap a finished torch or pickup in a prefab, set up sound on the same object, or show VFX in the editor view.
Last updated
Was this helpful?

