Fish Flock in UE4.25 Niagara Tutorial | Particle Attribute Reader

Fish Flock | Unreal engine 4.25 Niagara tutorial | UE4 Niagara Particle Attribute Reader
Fish flock swimming in an underwater scene in Unreal Engine 4.25 Niagara

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.

ComponentRole in SceneKey Behavior
Attractor EmitterTarget guide particlesSpawns moving attractor points (hidden in final render) that steer the flock
Fish Flock ParticlesMain schooling meshesFollows attractor positions using Particle Attribute Reader and random IDs
Fish MaterialSwimming body motionUses a dynamic parameter for randomized distortion and natural motion
Bubbles SystemUnderwater atmosphereRises with random scaling, rotation, material distortion, and particle trails
Collision & Scene ScaleEnvironment interactionOrients 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

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.


Discover more from CGHOW

Subscribe to get the latest posts sent to your email.

2 responses to “Fish Flock in UE4.25 Niagara Tutorial | Particle Attribute Reader”

  1. safia ali Avatar
    safia ali

    Awesome tutorial

  2. […] like this: Fish Flock in UE4.25 Niagara Tutorial | Particle Attribute Reader · Insect Flock in UE4 Niagara | Inspired From UE5 […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.