Scene<T extends App<T> > constructor
Creates a new scene bound to app.
Automatically registers a TransformSyncSystem and emits EventSceneInitialized.
Implementation
Scene(this.app, {
String? key,
bool populateDefaults = true,
}) {
this.populateDefaults = populateDefaults;
this.key = key ?? namedId;
if (populateDefaults) {
addSystem(TransformSyncSystem(app));
}
emit(EventSceneInitialized(app, this));
}