EngineStates do not allow you to specify System Priority.
IkonOne opened this issue · comments
Erin M Gunn commented
The system 'add' functions in EngineState do not allow the System priority to be specified.
https://github.com/nadako/Ash-Haxe/blob/master/src/ash/fsm/EngineStateMachine.hx
Timur commented
When you do state.addInstance()
you get link to StateSystemMapping
object, it has withPriority()
method to specify priority for the system.
So you can do
state.addInstance(new PhysicSystem()).withPriority(1)
.addInstance(new CameraSystem()).withPriority(2)
.addInstance(new PreUpdateSystem()).withPriority(0);
Erin M Gunn commented
Ah yes. Thank you. I'll just close this and walk away like nothing happened...
Timur commented
Don't forget to close other related issues!