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¶
- Create or select a Unit Definition.
- Assign a Visual Prefab.
- Assign an Animator Controller and World HUD prefab.
- Adjust capsule collider dimensions.
- Click Create Prefab.
- Use Spawn In Scene or drag the generated prefab into the scene.
The generator adds and connects:
TacticalUnit- Root
CapsuleCollider - Visual child and Animator
UnitAnimationControllerUnitAnimationEventRelayUnitWorldHudAlienSpawnSettingsfor 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.