Installation
This guide covers installing Wayfinder in your Unity project and setting up the required scene structure.
Requirements
- Unity 2021.3 LTS or later
- TextMeshPro (imported automatically by Unity)
- 2D Tilemap package (usually included in Unity)
Installation Steps
1. Import Wayfinder Package
Wayfinder is distributed as a Unity package. Import it into your project:
- Download the Wayfinder package
- Open your Unity project
- Assets > Import Package > Custom Package
- Select the Wayfinder
.unitypackagefile - Click Import in the Import dialog
2. Verify Installation
After importing, you should see:
Assets/
└── Wayfinder/
├── Scripts/
│ ├── AI/
│ ├── Combat/
│ ├── Map Components/
│ ├── Managers/
│ ├── State Machines/
│ └── ...
├── ScriptableObjects/
│ ├── Scripts & Templates/
│ └── Enums/
└── Prefabs/ (if included)3. Layer Setup
Wayfinder uses Unity layers for raycasting. Create these layers:
- Edit > Project Settings > Tags and Layers
- Add these layers:
Tile- for grid tilesUnit- for battle unitsUI- for battle UI elements
4. Create Battle Scene
Create a new scene for your first battle:
- File > New Scene (use 2D template)
- Save as
Assets/Scenes/Battle.unity
Scene Setup
Required Components
Every battle scene needs these core components:
1. Battle Manager
Create an empty GameObject named Battle Manager with these components:
- BattleStateManager - Controls battle flow
- CombatCalculator - Handles damage calculations
- AIManager - Manages AI decision-making
Battle Manager (GameObject)
├── BattleStateManager
├── CombatCalculator
└── AIManager2. Tilemap Setup
Create the grid tilemap:
- Right-click in Hierarchy > 2D Object > Tilemap > Rectangular
- This creates a
GridGameObject withTilemapchild - Add TileManager component to a new GameObject
Grid (GameObject)
└── Tilemap (GameObject)
├── Tilemap component
└── TilemapRenderer component
Tile Manager (GameObject)
└── TileManager component3. UI Manager
Create an empty GameObject named UI Manager:
- Add UIStateManager component
- This handles battle UI state changes
4. Input Manager
Create an empty GameObject named Input Manager:
- Add InputStateManager component
- This handles player input during battle
Configuration Assets
Wayfinder uses ScriptableObject assets for configuration. Create these in your project:
Combat Configuration
Right-click in Project > Create > Wayfinder > Combat > Combat Configuration
This defines damage formulas, hit chance, and combat modifiers.
Example values:
Base Hit Chance: 0.90 (90%)
Min Hit Chance: 0.10
Max Hit Chance: 0.99
Defense Formula: Percentage
Strength Scaling: 2.0
Intelligence Scaling: 2.5Assign to CombatCalculator > Config in the inspector.
AI Configuration
Right-click in Project > Create > Wayfinder > Configuration > AI
This defines all AI scoring values and behavior parameters.
Assign to AIManager > Config in the inspector.
Debug Configuration
Right-click in Project > Create > Wayfinder > Debug > Debug Configuration
Controls which debug logs are shown (AI, Combat, State Machine, etc.).
Inspector Setup
BattleStateManager
In Battle Manager GameObject:
- Assign Tile Manager reference
- Assign UI State Manager reference
- Assign Battle Cursor Controller (if you have one)
- Leave Units list empty for now (we’ll add units in Getting Started)
CombatCalculator
Assign your Combat Configuration asset to the Config field.
AIManager
Assign your AI Configuration asset to the Config field.
TileManager
- Assign Tilemap reference (the Tilemap component)
- Assign TilemapRenderer reference
- Assign Tile Prefab (provided in Wayfinder package)
- Create an empty GameObject named
Tiles- assign as container
Verify Setup
Press Play. You should see these in the Console:
- No critical errors
- Warning: “No units assigned” (expected - we’ll add units next)
If you see errors, check the error messages - Wayfinder provides detailed setup guidance.
Next Steps
Your battle scene is now configured! Continue to Getting Started to create your first tactical battle.