Over 11,000 five-star assets
Rated by 85,000+ customers
Supported by 100,000+ forum members
Every asset moderated by Unity
Unity Version | Built-in | URP | HDRP |
---|---|---|---|
6000.0.23f1 | Compatible | Compatible | Compatible |
Support 2021 and 2021+ unity
Common Stat is a powerful Unity plugin that provides an all-in-one solution for managing game stats. Whether you're working on an RPG, action game, or any other type of project, this framework makes it easy to design, modify, and extend stats while keeping everything accessible for both developers and game designers.
Key Features:
Stat Editor: A dedicated editor for creating and modifying stats, enabling you to easily configure properties like HP, armor, damage, and more.
Formula System: Write and customize formulas for calculations such as damage, healing, and skill effects. The intuitive formula syntax supports variables (${variable}) and parameters (@{parameter}) for maximum flexibility.
Runtime Value Management: Manage stats dynamically at runtime, with support for real-time updates to current and maximum values. This design is inspired by popular games such as World of Warcraft and Elden Ring.
Game Designer Friendly: Intuitive tools that allow game designers to configure stats and test formulas without needing extensive programming knowledge.
Documentation and Extendability: Comprehensive documentation is provided for developers to easily extend, maintain, and integrate the framework into their projects.
The system also includes a demo showcasing common attributes such as HP, armor, and attack stats, as well as how formulas are applied in real-time. Developers can experiment with stat modifications, observe the effects of formulas, and test their setups using the WebGL demo or provided examples.
Whether you’re building single-player adventures or complex multiplayer systems, Common Stat will save you time and effort by providing a solid foundation for managing stats.
Stat
Easy to maintain any attribute, such as attack power, life, armour, strike rate, etc.
Manage current and maximum values dynamically using the Runtime Value SO system.
Formula
Customizable formula editor with real-time validation and error detection.
- Supports basic math operations: +, -, *, /, %.
- Use ${variable} for stat variables and @{parameter} for custom parameters.
- Formula parsing system for easy expansion and maintenance.
- Formula example: pow(${Armor} - 1, 2 + 1) + sqrt(${HP}) * abs(sin(${HP})) + max(random(1, ${Armor}), min(${HP}, 100)) + dice(${Armor}, 6) * chance(${Armor})
Common Stat
