Forum rules - please read before posting.

StopAllCoroutines on Loading scene loading

Hi

I have a loading scene which has some basic loading animations (in my case some spinning balls). The spinning is handled by a coroutine which changes the sprites every x seconds to get an old school rotation effect.

Whilst this works if I play the loading scene in the editor, when instantiated by AC at Runtime the coroutines don't work and I wonder whether there is a StopAllCoroutines call being run by the scene loader. There appears to be one in one of the fade functions in AC.

If that is the case, what's the right way to determine whether the loading scene is now visible and is allowed to start its own coroutines? There's a eventmanager.OnAfterChangeScene() which might be suitable if I can tell whether it has loaded the Loading scene.

Any thoughts on this?

Olly

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.