30% offEnds Tue 1 Dec

Animal AI in Unreal Engine 5: ambient wildlife that roams, flees and respawns

Ambient animal AI in Unreal Engine 5 needs six things: spawning, NavMesh roaming, threat detection, fleeing, death and respawn. A cheap way to run many animals is one manager that checks distances on a timer, instead of a Tick and a perception component on every animal. 3DBear's CritterAI works this way, in Blueprints, and drives your own animals through a species Data Asset.

What ambient animal AI has to do

Ambient wildlife is the background fauna of a level: the small animals that populate a forest, a farm, a village or a park. Whatever the species, the AI behind it has six jobs:

  1. Spawn the animals across the area they belong to.
  2. Roam the NavMesh, with pauses to idle or eat.
  3. Detect threats: notice a player, NPC or predator coming close.
  4. Flee from the threat to a safe distance.
  5. Die when something damages them.
  6. Respawn after a while, so the area does not empty out.

One more requirement sits under all six: an animal that is off-screen, with nobody near it, should cost close to nothing.

Where the cost comes from

When every animal carries its own AI, two costs repeat on every animal:

  • An actor that Ticks runs its logic every frame, whether or not anyone is near it.
  • A perception component on every animal means every animal is checking for stimuli on its own.

One Director instead of a brain per animal

CritterAI, the Blueprint system that ships with 3DBear's four stylized animal packs, is built the other way round. It needs no C++ and no plugins. One Director actor thinks for every critter in the level, as the rabbit pack's changelog puts it. In the squirrel listing's words, the Director "does all distance checks on a pulse (distance-squared, no AIPerception components)".

Each critter's logic runs only at movement-leg boundaries: pick target → AIMoveTo → callback → pause timer. The squirrel listing calls this event-driven, with no per-critter Tick; the rabbit listing says there is no per-critter behaviour Tick; and the raccoon listing describes the AI as tick-free with distance-based dormancy.

Each animal has 3–4 LODs and one material, with the fur colours as material instances. The squirrel and the raccoon use a single material slot.

Set it up

The animals move on the NavMesh, so the level needs one. The rabbit listing's quick setup uses a spawner:

  1. Add a NavMeshBoundsVolume to your level.
  2. Place a Critter Spawner.
  3. Select a species Data Asset, such as the rabbit's.
  4. Set the population count and spawning radius.
  5. Press Play.

The spawner distributes the animals across reachable NavMesh locations and creates a Critter Director if the level does not already contain one.

The squirrel listing describes placing the animals by hand instead: place any number of BP_Critter actors, set their Species to DA_Squirrel, and place one BP_CritterDirector.

For Unreal Engine 5.3, the raccoon pack's FAQ adds two notes. Run Build → Build Paths once before the first Play. And in the 5.3 build the Director does not auto-spawn, so use Spawner actors or place the raccoons by hand.

Use your own animal

CritterAI is not tied to the animals it ships with: species live in a species Data Asset, and the same system drives the rat, the rabbit, the squirrel and the raccoon. The raccoon pack's FAQ gives the steps for adding your own:

  1. Duplicate one species Data Asset and fill it in for your animal.
  2. Make a child of the template Animation Blueprint for your skeleton.

No Blueprint edits are needed.

Damage, death and respawn

The raccoon pack's FAQ says your existing weapons will kill the raccoons as long as they call ApplyDamage; nothing needs changing on your side. A critter dies from any damage and respawns after a set time, as the squirrel listing puts it; the rat listing says it respawns after a countdown.

The raccoon pack includes a demo player for testing this. Left-click fires a sphere trace for 25 damage, with a hit burst and a flash, so you can try the damage, death and respawn loop in the demo map.

Which pack to start with

All four animals run the same CritterAI system:

To get all four at once, the Stylized Forest Animals Pack bundles them in one purchase, with 37 animations and 21 fur colours between them.

Related assets

Critter

Stylized Raccoon Critter Mob

A game-ready stylized raccoon with 4 LODs, 5 fur colours, a ragdoll, and the CritterAI ambient-wildlife system — roams, sniffs, flees, dies, and respawns. The AI drives any custom critter.

from $23.09 was $32.99, 30 percent off
Critter

Stylized Rabbit Critter Mob with Reactive AI

A well-optimized stylized bunny with 4 LODs and the CritterAI ambient-wildlife system: place a Spawner, set a count, and rabbits roam, flee, die and respawn. Mobile and VR friendly.

5.0 (1)from $23.09 was $32.99, 30 percent off
Critter

Stylized Rat Critter Mob with Reactive AI

A well-optimized stylized rat with 3 LODs and the CritterAI ambient-wildlife system: place a Spawner, set a count, and rats roam, flee, die and respawn. Mobile and VR friendly.

5.0 (1)from $17.49 was $24.99, 30 percent off
Bundle

Stylized Forest Animals Pack

All four stylized critters — squirrel, raccoon, rabbit and rat — with 37 animations, 21 fur colours and the CritterAI ambient-wildlife system.

from $52.49 was $74.99, 30 percent off

Get 3DBear updates

New assets, devlogs, and the occasional discount.

← Back to the devlog