Check if storyboard is transitioning between scenes

I’m in the middle of a code in which it would be really useful for me to be able to get if storyboard is currently transitioning between 2 scenes, but I wasn’t able to find anything in the docs.

Is there a way to get it?

Thanks!

You could set a flag in exitScene() (even add it to the storyboard object, something like:

storyboard.isTransitioning = true

then in enterScene():

storyboard.isTransitioning = false

And behave based on that.

Yep, that was what I was doing. I just thought that there could be an easier/more appropriate way :slight_smile:

Thanks, Rob!

You could set a flag in exitScene() (even add it to the storyboard object, something like:

storyboard.isTransitioning = true

then in enterScene():

storyboard.isTransitioning = false

And behave based on that.

Yep, that was what I was doing. I just thought that there could be an easier/more appropriate way :slight_smile:

Thanks, Rob!