ambitious-knife-25690
02/10/2023, 5:42 PMambitious-knife-25690
02/10/2023, 6:24 PMmain
but it seems like ceramic destroys previous scene instancesambitious-knife-25690
02/10/2023, 6:24 PMambitious-knife-25690
02/10/2023, 6:34 PMfaint-toothbrush-51643
02/10/2023, 7:54 PMambitious-knife-25690
02/10/2023, 8:12 PMfaint-toothbrush-51643
02/10/2023, 9:32 PMambitious-knife-25690
02/10/2023, 9:40 PMbillowy-waiter-28954
02/10/2023, 11:08 PMapp.scenes.main = new SomeScene()
) is to manage resources and memorybillowy-waiter-28954
02/10/2023, 11:08 PMbillowy-waiter-28954
02/10/2023, 11:09 PMbillowy-waiter-28954
02/10/2023, 11:09 PMbillowy-waiter-28954
02/10/2023, 11:09 PMfaint-toothbrush-51643
02/10/2023, 11:09 PMbillowy-waiter-28954
02/10/2023, 11:10 PMapp.scenes.set('slotname', myScene);
billowy-waiter-28954
02/10/2023, 11:10 PMslotname
slot, then same rule applies as when assigning another scene to `main`: the previous scene fades out and is destroyed)ambitious-knife-25690
02/10/2023, 11:14 PMambitious-knife-25690
02/10/2023, 11:17 PMhx
...set('a', scene_a);
...set('b', scene_b);
scenes.main = scene_a;
buttonClick() {
scenes.main = scene_b;
}
ambitious-knife-25690
02/10/2023, 11:17 PMambitious-knife-25690
02/10/2023, 11:18 PMambitious-knife-25690
02/10/2023, 11:18 PMfaint-toothbrush-51643
02/10/2023, 11:19 PMhx
...set('a', scene_a);
...set('b', scene_b);
scene_a.active = true;
scene_b.active = false;
buttonClick() {
scene_a.active = false;
scene_b.active = true;
}
billowy-waiter-28954
02/10/2023, 11:20 PMmain
and to another slot with set('blah', ...)
billowy-waiter-28954
02/10/2023, 11:20 PMapp.scenes.main = ...
is the same as doing app.scenes.set('main', ...)
billowy-waiter-28954
02/10/2023, 11:21 PMambitious-knife-25690
02/10/2023, 11:22 PMambitious-knife-25690
02/10/2023, 11:22 PMMainScene
ambitious-knife-25690
02/10/2023, 11:22 PMfaint-toothbrush-51643
02/10/2023, 11:34 PM