Transitioning Scenes in Lite

Hi folks!

Long time babylon user and I’ve started messing with lite. I’m having a hard time understanding scene transitions though. This playground shows my basic approach, but after the first iteration (whether i starts at 0 or 1), things start to go wonky.

What mistake am I making? Thanks!

Shortly, make the scene functions build only. Do not register inside them.

Then dispose the old scene before registering the replacement.