You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi The problem is.
After I create a Button on Overlap2d tool. In code, I add ButtonComponent to Entity.
After Debug. I can see the ButtonSystem is updating the button.
Hi The problem is.
After I create a Button on Overlap2d tool. In code, I add ButtonComponent to Entity.
After Debug. I can see the ButtonSystem is updating the button.
But LayerSystem is updating the button too. in method updateLayers()
I think it is because the Button I created has CompositeTransformComponent too.
And I check the Engine systems.
The update order is like this
LayerSystem -> Overlap2dRender -> ButtonSystem.
So result is ButtonSystem is override by LayerSystem before Render.
To fix this. I can update the EntitySystem property priority. but Engine does not update order by calling
systems.sort(systemComparator);
and getSystems return ImmutableArray, so I can not update order.
QuickFix:
PS. English is not my strong suit. Sorry...
The text was updated successfully, but these errors were encountered: