Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

💥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

Thing
What it is
How you get one

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/.

NOTE: A new definition is white circular particles moving up. It is not fire until you change colour, size, and maps. The filename does not change how it looks.

1

Create the VFX resource

In the Asset panel, right-click an empty area, select New Resource, then VFX. Name it, for example fire.

The editor writes a .vfx.json. Example: @project/assets/models/fire.vfx.json.

2

Open the VFX Editor

Double-click the .vfx.json. A preview viewport opens with a Restart control, and two tabs:

Tab
Job

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.

3

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) or burst (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.

4

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.

5

Show VFX in the editor

If the scene looks empty, open View and enable Show VFX. That toggle does not create the effect. It only draws VFX Nodes while you edit.

Move the node like any other object. Placement lives on the node, not on the .vfx.json.

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

What went wrong
What to do

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?