Preload scene to get higher frame per second
I have an to low Frame per Second and i was wondering if there was a way to load all of the objects that wont move or get animated? I use Unity 5.3.4. Thanks for any answer, if the answer involves scripts I would prefer C#, but both are appreciated... If you now ow I could add an animation or progress bar in the loading time I would also appreciate that
Answer by mwnDK1402 · Jun 19, 2016 at 10:37 PM
I found an answer to your second question here: http://answers.unity3d.com/questions/13517/how-to-use-loadlevelasync-to-make-a-progress-bar.html
Here's a C# version for you:
private IEnumerator LoadScene(int index)
{
AsyncOperation loadingScene = SceneManager.LoadSceneAsync(index);
while (!loadingScene.isDone)
{
Debug.Log(loadingScene.progress);
yield return null;
}
}
Your answer

Follow this Question
Related Questions
Loading new scene in unity 2D 0 Answers
Scene Manager worked once but not twice 0 Answers
Limiting frame rate (fps) in my game isn't working. (dev. for WebGL) 0 Answers
SceneManager not finding scene at buildIndex, even though there is one. 6 Answers
SceneManager.LoadScene is crashing or freezing for Android Devices 3 Answers