The Medieval Bio Editor Window provides an intuitive Unity Editor interface for creating, editing, and managing medieval characters with real-time preview, bulk generation capabilities, and comprehensive character data visualization.
🚀 Getting Started
Opening the Editor
Access the editor through Unity's menu system:
Tools → Medieval Bio Generator → Character Editor
The editor window will open as a dockable Unity Editor window with a split-pane layout.
Editor Layout Overview
┌─────────────────────────────────────────────────────────────┐
│ Medieval Bio Editor - Character Management │
├─────────────────────┬────────────────────────────────────┤
│ │ │
│ Character List │ Character Details Panel │
│ (Left Panel) │ (Right Panel) │
│ │ │
│ • Character 1 │ Name: [____________] │
│ • Character 2 │ Age: [___] Gender: [Dropdown] │
│ • Character 3 │ Settlement: [Dropdown] │
│ • ... │ Faction: [Dropdown] │
│ │ │
│ [Generate New] │ [Generate] [Save] [Export] │
│ [Bulk Generate] │ │
│ [Clear All] │ Family Tree Visualization │
│ │ Personality Traits Display │
└─────────────────────┴────────────────────────────────────┘
🎨 Main Features
👥 Character List
Visual list of all generated characters with quick selection and management
⚙️ Parameter Controls
Intuitive sliders and dropdowns for settlement tier, faction, age, and gender
🌳 Family Tree View
Interactive family relationship visualization with expandable nodes
📊 Trait Display
Comprehensive personality and physical trait visualization
🔄 Real-time Preview
Instant character preview as you adjust parameters
💾 Export Options
Save characters to ScriptableObjects or JSON format
⚙️ Parameter Controls
Basic Character Parameters
- Character Name: Custom name field with auto-generation option
- Age Slider: Range 16-80 years with medieval-appropriate constraints
- Gender Toggle: Male/Female selection with faction-appropriate naming
- Settlement Tier: Dropdown with 6 options from Wilderness to Keep
- Town Level Score: Slider 0-100 for settlement prosperity
- Faction Type: Civilian, Noble, Bandit, Mercenary, Monster
Advanced Options
- Social Class Override: Force specific social class (Peasant to Noble)
- Occupation Hint: Suggest specific occupation for the character
- Generate Family Tree: Toggle family member generation
- Enhanced Attributes: Enable personality and physical trait generation
- Random Seed: Reproducible generation with custom seed values
🔄 Real-time Character Preview
Live Preview Features
- Instant Updates: Character preview updates as you adjust any parameter
- Validation Feedback: Red highlighting for invalid parameter combinations
- Occupation Suggestions: Dynamic occupation list based on settlement and faction
- Name Preview: Generated name appears in real-time
- Social Class Indicator: Visual badge showing calculated social class
Preview Panel Contents
Character Preview:
┌─────────────────────────────────────┐
│ Name: Aldric the Blacksmith │
│ Age: 34 | Gender: Male │
│ Settlement: Town (Level: 65) │
│ Faction: Civilian │
│ Social Class: Artisan │
│ Occupation: Blacksmith │
│ │
│ Physical: Sturdy build, brown hair│
│ Personality: Honest, Hardworking │
│ Skills: Metalworking, Trading │
└─────────────────────────────────────┘
🌳 Family Tree Visualization
Interactive Family Display
- Tree Structure: Hierarchical display showing parents, spouse, and children
- Expandable Nodes: Click to reveal detailed family member information
- Age Indicators: Visual age progression through the family tree
- Occupation Badges: Small icons indicating family member occupations
- Relationship Lines: Clear visual connections between family members
Family Tree Controls
- Generate Family: Button to create family members based on current character
- Regenerate Family: Recreate family with new random parameters
- Family Size Control: Slider to influence number of children generated
- Inheritance Preview: Show which occupations children will likely inherit
📊 Character Data Management
Character List Features
- Multi-Select: Select multiple characters for bulk operations
- Search Filter: Filter characters by name, occupation, or faction
- Sort Options: Sort by name, age, settlement, or social class
- Character Preview: Hover over list items for quick character preview
- Delete Confirmation: Safe deletion with confirmation dialog
Bulk Generation Tools
- Population Generator: Generate entire town populations with realistic distributions
- Family Groups: Create related family units with consistent naming
- Settlement Populations: Generate appropriate NPCs for specific settlement sizes
- Export Batch: Save multiple characters at once to ScriptableObjects
💾 Export and Save Options
ScriptableObject Export
// Export to ScriptableObject
public class CharacterData : ScriptableObject
{
public string CharacterId;
public CharacterBio BioData;
public FamilyTree FamilyData;
public Sprite Portrait; // Optional character portrait
}
- Auto-Naming: Automatic file naming based on character name and ID
- Folder Organization: Organized export to designated project folders
- Batch Export: Export multiple characters in a single operation
JSON Export Format
{
"characterId": "merchant_001",
"name": "Aldric the Merchant",
"profile": {
"firstName": "Aldric",
"surname": "the Merchant",
"age": 42,
"gender": "Male",
"occupation": "Merchant",
"socialClass": "Merchant"
},
"family": {
"parents": [...],
"spouse": {...},
"children": [...]
}
}
🎮 Integration with Game Systems
Runtime Character Loading
public class CharacterManager : MonoBehaviour
{
public CharacterData[] characterDatabase;
public void LoadCharacter(string characterId)
{
var characterData = System.Array.Find(characterDatabase,
c => c.CharacterId == characterId);
if (characterData != null)
{
SpawnNpc(characterData.BioData);
}
}
}
Dialogue System Integration
- Personality-Based Dialogue: Use generated personality traits for dialogue trees
- Occupation-Specific Lines: Characters speak appropriately for their professions
- Family Relationship Dialogue: Family members reference each other in conversations
⚡ Performance Optimization
Editor Performance Features
- Lazy Loading: Family trees load only when expanded
- Caching System: Recently generated characters cached for quick access
- Background Generation: Large batch operations run in background threads
- Memory Management: Automatic cleanup of unused character data
🛠️ Customization and Extensibility
Custom UI Themes
- Color Schemes: Customizable editor color themes
- Layout Options: Adjustable panel sizes and arrangements
- Font Customization: Support for different font families and sizes
Plugin Architecture
- Custom Generators: Add your own character generation algorithms
- Export Adapters: Create custom export formats for your game
- UI Extensions: Add custom panels and controls to the editor
💡 Pro Tips for Editor Usage
Workflow Optimization
- Keyboard Shortcuts: Use Ctrl+G for quick generation, Ctrl+S for save
- Parameter Presets: Save frequently used parameter combinations
- Batch Operations: Generate multiple characters with similar parameters
- Template Characters: Create base templates for different settlement types
Quality Assurance
- Consistency Checks: Use the editor to verify character consistency across your game
- Population Validation: Ensure realistic population distributions for settlements
- Name Diversity: Check for appropriate name variety in generated populations
← Back to Medieval Bio Generator