Skip to content

Units & Prefabs

Open:

Tools > Pixit Games > Turn Based Engine > Database > Unit Creator

Unit Definition

A Unit Definition stores:

  • Team and combat role
  • Maximum AP and movement per AP
  • Vision range, movement speed, and rotation speed
  • Health, armor, and aim modifier
  • Weapon and Ability Loadout
  • Visual Prefab and Animation Profile
  • Eye height and death timing

Generate a unit prefab

  1. Create or select a Unit Definition.
  2. Assign a Visual Prefab.
  3. Assign an Animator Controller and World HUD prefab.
  4. Adjust capsule collider dimensions.
  5. Click Create Prefab.
  6. Use Spawn In Scene or drag the generated prefab into the scene.

The generator adds and connects:

  • TacticalUnit
  • Root CapsuleCollider
  • Visual child and Animator
  • UnitAnimationController
  • UnitAnimationEventRelay
  • UnitWorldHud
  • AlienSpawnSettings for alien units

Alien spawn state

On an alien instance, configure Alien Spawn Settings:

State Behavior
Idle Waits until contact
Alerted Finds cover and sets an ambush in its facing direction
Search Searches toward Initial Search Target or its facing direction

The same generated prefab can use a different initial state in each scene.