An attribute that sets a script's execution order
- Works on MonoBehaviours and ScriptableObjects
- No need to open the Script Execution Order settings menu
All you need to do is add the [ExecutionOrder(...)] line on top of your class and you are good to go.
Every time your code gets recompiled the attributes get checked and updated in the Script Execution Order list.