declare module "../abstractScene" {
export interface AbstractScene {
/**
* The list of layers (background and foreground) of the scene
*/
layers?: Array<Layer>;
}
}
It would mean quite a number of changes, because we would now have to check for undefined anywhere we access scene.layers. Did you encounter a case where the layer scene component has been created with an empty scene?