Publisher | RoofenGame |
---|---|
File size | 16.94kB |
Number of files | 17 |
Latest version | 1 |
Latest release date | 2025-06-05 12:24:13 |
First release date | 2025-06-05 12:24:13 |
Supported Unity versions | 2018.4.2 or higher |
Common Stat – The Complete Stat & Formula Framework for Unity
Accelerate game development with a comprehensive, designer-friendly stat management system that scales from prototype to production.
Common Stat provides a robust, performance-optimized framework for managing game statistics, formulas, and dynamic calculations. Whether you're developing RPGs, action games, or complex simulation titles, this system delivers the flexibility and reliability your project demands.
Core Features
Flexible Attribute System
- Create and modify any game attribute (HP, Armor, Damage, Critical Rate, etc.) through intuitive ScriptableObject workflows
- Version-control friendly architecture with prefab-safe data storage
- Clone and customize attributes in seconds without code modification
Advanced Runtime Management
- Current/Max value pairs with automatic UI integration
- Live value updates with built-in serialization.
- Inspired by industry-leading titles like Elden Ring and World of Warcraft
Professional Development Tools
- Stat Visualizer Window: Real-time monitoring of current values, overrides, and calculated results
- Dedicated Stat Editor: Streamlined interface for rapid iteration and balance testing
- Live Validation: Catch configuration errors before runtime
- Comprehensive tooltips and contextual help throughout
High-Performance Formula Engine
Execute complex mathematical operations with zero garbage collection:
pow(${Armor} - 1, 2 + 1) + sqrt(${HP}) * abs(sin(${HP}))
+ max(random(1, ${Armor}), min(${HP}, 100))
+ dice(${Armor}, 6) * chance(${Armor})
Performance Metrics: 1000 formula evaluations in 0.006ms
Supported Operations:
- Basic arithmetic: +, -, *, /, %
- Advanced functions: pow, sqrt, sin, cos, random, min, max, dice, chance
- Variable references: ${stat_name} for dynamic stat values
- Runtime parameters: @{parameter} for contextual data injection
Technical Specifications:
- Zero-GC execution with thread-safe stack pooling
- Fully extensible function library
- Multithreading support for high-performance scenarios
Designer-Developer Collaboration
For Designers:
- Visual formula editor with live preview
- No-code balance iteration and testing
- Immediate feedback on statistical changes
- Intuitive drag-and-drop workflow
For Developers:
- Clean, well-documented C# codebase
- Strongly-typed, unit-testable architecture
- Comprehensive inline documentation
- Straightforward integration and customization APIs
Production-Ready Features
- Network Synchronization: Easy Stat or Value Synchronization
- Save System Integration: Seamless serialization for game state persistence
- Performance Optimization: Enterprise-grade efficiency for large-scale projects
- Extensibility: Modular design supports custom functionality without core modifications
Getting Started
The package includes:
- Complete demo scene with interactive examples
- WebGL build for immediate testing
- Step-by-step integration guide
- Performance profiling tools
- Comprehensive documentation
Use Cases
Perfect for projects requiring:
- Complex RPG stat systems
- Dynamic damage calculations
- Real-time balance adjustments
- Multiplayer stat synchronization
- Data-driven game design workflows
Common Stat transforms stat management from a development bottleneck into a competitive advantage, enabling your team to focus on gameplay innovation rather than infrastructure maintenance.
Build better games faster. Focus on fun, not stat system complexity.
This is the free edition. It does not include the Formula system or the advanced Editor panel, and it will no longer receive updates. For professional support, please use the CommonStatPro.
Survivors Roguelike Kit made with this system