What's the most concise (and ideally, most efficient) approach to sort the rendering order of sprites in the game scene at runtime, post add()
-ing the objects to the scene? Is there a built-in property on SpriteComponent
or SpriteAnimationGroupComponent
objects that can receive an int
to indicate the sort order and override the implicit sort order? I wanted to confirm there wasn't something already implemented in Flame prior to implementing my own Z-sorting algorithm from scratch.
Thanks!