An interactive demo showcasing core attribute features with three panels: Character Stats, Stat Checks, and Combat Simulation. No generated code or ScriptableObjects required - everything runs from code.
Simple Attribute Forge/Base/FreeDemo/BaseDemo.unity and open it
The demo scene features three side-by-side panels, each demonstrating different aspects of the attribute system:
Live attribute display with interactive controls:
Random challenges that test your attributes:
Auto-battle between Player and a Goblin enemy:
Take damage and watch HP regenerate automatically after a delay. Stamina and Mana also regenerate. The demo uses ModifyValue() which triggers the regen system.
The potion button adds to modifierBonus temporarily, showing the base + modifier = total calculation in real time. Train adds to baseValue permanently.
All attributes are created programmatically using SimpleRuntimeAttribute constructors - no wizard generation needed for simple use cases.
Vitals (HP/Mana/Stamina) show current/max with regeneration. Basic stats (STR/DEX/INT) show totalValue. Demonstrates when to use each type.
The demo source code is in FreeDemo/BaseDemo.cs. You can: