Skip to content

Team

The Team setup assigns an entity to a single faction.

Overview

In the ECS version there are multiple related types:

Type Kind Purpose
TeamAuthoring MonoBehaviour Placed on a sub-scene GameObject; baked into ECS at build/enter play mode
TeamMember IComponentData Stores the entity's runtime team assignment
PlayerTag IComponentData Automatically added when the team is set to Player

TeamAuthoring (Inspector)

Add TeamAuthoring to any GameObject inside a Unity sub-scene that should belong to a team.

Property Type Default Description
Team Team Player The team assigned to the baked entity