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
It would be helpful to configure the default systems to be used for all scenes. This spares having to make a base scene class with the system added if I want to make sure it's always used.
Proposal
// proposal 1newex.Engine({world: {systems: [...],// adds to current systemsremoveDefaultSystems: true/false// removes default if true}})// proposal 2newex.Engine({world: {systems: [...],// overrides systems, must add back ex.MotionSystem etc}})
The text was updated successfully, but these errors were encountered:
I like the removeDefaultSystems option from proposal 1 a lot, because it currently takes a bit of work to get a scene without the default systems preloaded.
Using a callback (proposal 4) feels like the "best" method to me, because it prevents the reuse of system instances between scenes (causing initialize to be called more than once).
What about adding initializeWorld: (world:World)=>void to the scene constructor that falls back to a default function that adds the systems currently added in the constructor.
This default function could be overwritten if needed using something like proposal 4
Context
It would be helpful to configure the default systems to be used for all scenes. This spares having to make a base scene class with the system added if I want to make sure it's always used.
Proposal
The text was updated successfully, but these errors were encountered: