Inspector Math Expressions is a tiny Editor extension,
which allows you to edit formulas directly in Inspector without recompilation code!
Why is the best approach?
Good game balance is an important part of the game.
Formulas are one of main part, which is constantly being edited. Every time recompile the project - is a terrible idea!
Especially if you have a game designer in a team, he could easily edit balance formulas directly in the game without modifying the code.
If your game has already been published, and you want to upgrade the game balance - it is not a problem.
Simply update asset bundles with formulas - and you have a new game balance. Especially it is important for iOS, which updated version of the application can take up to 10 days.
With Inspector Math Expressions you will:
- Math expressions as fields of class
- Math expressions as ScriptableObject
- Editing math expressions inside Inspector window
- Easy creation of new math expressions templates Basic set of mathematical functions for use inside the formula (+,-,/,*,^, (), sqrt, abs, ln, floor, ceil, round, sin, cos, tan, asin, acos, atan, atan2, min, max, rnd, clamp, E, PI)
- Dice notation
- Extension capabilities with own math functions.
Documentation
Unity Thread
Supports all platforms.