I am using Cocos Creator 3.3.2
I have created 3 scenes in scene folder
- initial loader
- scene for desktop
- scene for mobile
My plan is to set the home scene as initial loader and detect mobile or desktop version then load the correct scene from the resources folder.
I moved the 2 scenes to the resources folder now. (originally they were not in resources folder)
I am using following to load the scene. Everything is working as expected.
private doDownload(path: string) {
resources.loadScene(path, function (err: Error | null, scene: any) {
if (err) {
console.log(err);
return;
}
if (scene != null) {
director.runScene(scene);
}
});
}
The problem I have is when I try to build the game I see desktop and mobile scenes also.
Can’t see a way to remove them.
Wouldn’t it only have the game scene (initial loader) since other scenes get loaded from resources folder?
Is there a way to remove this ?
