Populating
Population is how the system turns your authored world into a living simulation.
The runtime combines regions, buildings, jobs, homes, and character pool data to decide which agents can exist and how they should be initialized.
Population regions
Population regions define where a group of agents belongs.
Each region can control things such as:
- which character pool it uses
- how spawning should work
- which houses and workplaces are available to that region
Create a region from CIVIL-AI-SYSTEM -> Template and Actions.
Character pools
Character pools are the source of possible agent presentations and setup entries.
Use them to control the look and feel of a settlement. For example, a noble district and a rural village can use different pools even if they share some behaviour systems.
How spawning works
Spawning combines several pieces of data:
- valid housing
- valid workplaces and roles
- region rules
- character pool entries
The system can only create believable agents when those pieces line up.
Random spawning strategy
The built-in random strategy works broadly like this:
- select compatible housing and workplace data
- create an agent that can use both
- remove exhausted slots from the candidate pool
- repeat until limits are reached
In practice, the effective population is limited by the smallest important resource pool, usually housing or work capacity.
Why population can fail silently
If you expected more agents than you get, check:
- not enough valid homes
- not enough valid workplace roles
- character pool entries failing their requirements
- region setup not matching the world objects you created
Bespoke agents
Bespoke agents are hand-authored characters placed directly in the scene.
Use them when you want a unique NPC such as:
- the village elder
- the blacksmith master
- a quest-giving innkeeper
How to set up a bespoke agent
- Place the character model in the scene.
- Make sure the root has an
Animatorand any required collision. - Add the
Bespoke Agentcomponent. - Assign its home and workplace information.
- Press Play and verify the runtime setup succeeds.
Bespoke agents are useful for story-critical NPCs, while random population handles the broader town simulation.