
Learn how to create a stylized Ring Effect in Unreal Engine 5.1 Niagara using a single emitter, direct torus particle distribution, and a custom cube-scaling material (m_ScaleCube). This tutorial covers aligning mesh cubes toward the ring center, driving scale dynamically with particle color and dynamic parameters, and using a Scratch Pad with Execution Index to vary individual particle scale and color.
Quick Overview
- Engine: Unreal Engine 5.1 (Niagara)
- Effect Type: Stylized Ring / Shockwave / Spell Circle VFX
- Core Elements & Nodes: Single
FXNiagara Emitter, Torus Shape Location (radius 100), Direct Distribution via Execution Index, Mesh Renderer (Cube), Initial Mesh Rotation (Align to Vector),m_ScaleCubeMaterial (Object Position, World Position, Bounding Box), Dynamic Parameter, Particle Color, Scratch Pad, Lerp - Best Used For: Shockwaves, spell circles, pickups, and radial magic effects
Tutorial Breakdown & Chapters
- Create a New Niagara Emitter: Create a new Niagara system named
FX, remove unnecessary default modules, set the particle count to 10, and add a Torus Shape Location with a radius of 100 to spawn particles in a ring. - Control Particle Distribution: Switch the distribution from random to direct and drive the U position using the Execution Index. Set particle lifetime to infinite and loop count to 1 so particles spawn once and remain persistent.
- Use a Mesh Renderer Instead of Sprite: Replace the default Sprite Renderer with a Mesh Renderer, assign a cube mesh, and adjust its base size to fit the ring proportions.
- Align Cubes to Face the Ring Center: Add the Initial Mesh Rotation module, set it to Align to Vector, and link it to the shape vector so every cube faces inward toward the center of the ring.
- Scale the Mesh to Remove Gaps: Create the
m_ScaleCubematerial using the bounding box to scale the cube along the X, Y, or Z axis. Subtract World Position from Object Position to work in local space, then multiply with gradient values for dynamic scaling. - Add Dynamic Parameters: Introduce a Dynamic Parameter in the material and emitter, pairing it with Particle Color to manipulate the cube scale in real time.
- Adjust Particle Behavior: Increase the spawn rate to fill out the ring, fine-tune the scale values, and build a Scratch Pad module to selectively scale specific particles based on their ID (such as enlarging every second particle).
- Use Execution Index for Per-Particle Variation: Leverage the Execution Index (0 to 23) with a Lerp function to control which particles receive adjusted scale or color values based on their particle ID.
Frequently Asked Questions
How are particles arranged evenly into a ring in UE 5.1 Niagara?
Set the Shape Location to Torus with a radius of 100, then change the distribution mode from random to direct. By driving the U position with the Execution Index and setting lifetime to infinite with a loop count of 1, particles spawn once in an evenly spaced ring.
How do you orient the cube meshes toward the center of the ring?
Replace the Sprite Renderer with a Mesh Renderer using a cube mesh, then add the Initial Mesh Rotation module. Set its mode to Align to Vector and connect it to the shape vector from the Torus Shape Location so each cube automatically faces the center.
How does the m_ScaleCube material scale cubes and create per-particle variation?
The m_ScaleCube material subtracts World Position from Object Position to operate in local space and multiplies the bounding box gradient with a Dynamic Parameter and Particle Color. In Niagara, a Scratch Pad uses the Execution Index (0 to 23) and a Lerp node to vary scale or color per particle ID.


Leave a Reply