1. Home
  2. Unity RTS Engine
  3. Faction Manager

Faction Manager

This is the component that stores the faction data and makes it easier for the buildings, units and other components that form the faction communicate with each other.

This is very simply to create. Each faction requires a faction manager, so for each faction, create a new empty object and add the “FactionManager” component to it. Then assign the faction ID to this script and drag and drop it to its respective field in each faction settings in the game manager inspector:

Our factions still have one thing missing, which is the capital building. For that we will see how to create any type of building and at the end create capital buildings and link them with their respective factions.

How can we help?