I’m struggling with the right way to get sprites to draw in the correct order. I have various components that create sprites attached to their corresponding nodes. There is no way to specify a layer for a node - only for Drawable2D objects. So I am setting a variable on the node called ‘layer’ and then retrieving that from within the component to set the correct layer for the Drawable2D objects.
For components with multiple sprites that must be layered - I am using ‘orderInLayer’ to arrange their relative order to the layer they are in.
Does this seem like the right approach?