Loading screen for first spike in performance

Hi,

I currently have a spike at the start of my game, even after optimizing. I wonder whether there is a method using a certain function to make a loading screen untill the start() functions of all the scripts are passed?

I already know there is a Application.LoadLevelAsync function, but this does not completely fulfill my needs.

Thank you in advance,

Jasper

1 Answer

1

Take a look at this post, my answer is on the second page and sounds like it might be what you are after.

This is a solution, but there it is an awful lot of work to implement this in all the scripts. Is there no other approach to achieve this, a automated version of this approach? I just found that the execution order might have the solution for my problem. http://docs.unity3d.com/Manual/ExecutionOrder.html [EDIT]: The answer lies within a couritine that triggers the load function after the start function