
What is the Fish Flock effect in UE4.25 Niagara?
This tutorial demonstrates how to build an underwater fish flock scene in Unreal Engine 4.25 using Niagara’s Particle Attribute Reader data interface. Instead of animating each fish manually, fish particles read positions from an attractor emitter so the school swims together dynamically.
Alongside the fish flock system, the scene includes a second Niagara system for rising bubbles and trails, plus material-driven fish animation. It works well for underwater levels, aquariums, and ambient environment life.
How is the underwater fish flock structured?
The scene combines two Niagara particle systems with custom material animation to create natural underwater movement and collision response.
| Component | Role in Scene | Key Behavior |
|---|---|---|
| Attractor Emitter | Target guide particles | Spawns moving attractor points (hidden in final render) that steer the flock |
| Fish Flock Particles | Main schooling meshes | Follows attractor positions using Particle Attribute Reader and random IDs |
| Fish Material | Swimming body motion | Uses a dynamic parameter for randomized distortion and natural motion |
| Bubbles System | Underwater atmosphere | Rises with random scaling, rotation, material distortion, and particle trails |
| Collision & Scene Scale | Environment interaction | Orients fish to velocity, adds drag/curl noise, and collides with rocks |
Fish Flock Breakdown
- Attractor Emitter Setup: Create an attractor emitter (previewed as red particles during setup) with tuned spawn rates, then hide its visibility once the flock motion is dialed in.
- Particle Attribute Reader Tracking: Build a custom module using the Particle Attribute Reader data interface so fish particles read attractor positions, using a random ID so fish follow different attractors rather than converging on a single particle.
- Flocking Forces & Orientation: Adjust attractor strength and radius, then layer curl noise, drag, velocity orientation, and collision with scene geometry such as rocks at an enlarged scene scale.
- Material-Based Swimming Animation: Animate the fish inside a custom material driven by a dynamic parameter for randomized distortion, alongside simple grass wind effects for organic underwater sway.
- Rising Bubbles & Trails: Add a second Niagara system for bubbles with randomized scaling, rotation, material distortion, and trailing particles rising through the water.
Tutorial Access & Project Files
- Support & Project Files on Patreon: https://www.patreon.com/Ashif
- Full Video Tutorial on YouTube: https://youtu.be/ItPW_ha6iVs
More water and environment effects: Water Waves Material · Clouds · Foot Step Dust
More like this: Particle Attribute Reader Basics in UE4 Niagara Tutorial · Weapon FX in UE4 Niagara Tutorial
Frequently asked questions
How do the fish particles follow moving targets in Niagara?
A custom Niagara module uses the Particle Attribute Reader data interface to read the positions of separate attractor particles. Assigning a random ID makes individual fish follow different attractors instead of crowding around a single target.
How is the fish swimming motion animated?
The swimming motion is handled inside the fish material using a dynamic parameter for randomized distortion, paired with velocity orientation, curl noise, and drag in Niagara.
What other particle system is included in this underwater scene?
Alongside the fish flock Niagara system, the scene includes a second Niagara system for rising bubbles with random scale, rotation, distortion in the material, and particle trails.















































Leave a Reply