Next scene is loading in the Engine, but not in the Build! Help please
Hello, I'm making a 2d platformer game quite some time, and I don't have the problems with loading another scene in the build when I was working another scene.
Right now I have 8 scenes and the 7 scenes of 8 are loading fine in the build, but when I'm trying to load any scene after the first level, everything is not loading.
But I the engine itself everything loading superfast!
Of course, I thought that the problem is the level, that it has many memory usages. After that I added the script, that delete everything from the level except the UI, and I made that after that the next level need to load, but this is not working too. So when the inspector does not show what can make the problem here, I'm asking for help here, because I don't understand what can make such a problem when there is nothing on the scene before I'm starting to load the next, and it's not loading.
Maybe I need to check something? What can cause the problem?
*I'm also tried to load the scene Async, so I made the script, And everything is loading very fast at the beginning of the level1 so at the beginning of the level1 I can super fast load level2, but at the end of the level1 everything is "stucks" when its time to load level2.
Answer by tormentoarmagedoom · Aug 31, 2018 at 12:37 PM
Good day.
Are you sure all functions are called? In the correct order? Did you set the order of executon for all scripts to be sure they execute the same order in editor and in build? Ypu need to fi d what is not executong or something...
Bye, GL!
I think that's the problem in the memory trash, that is collecting after sometime spending in the level, but I don't know how to deal with it. I have tried to optimize script but maybe it's not enough.
Your answer
Follow this Question
Related Questions
Can't call methods in other scripts in Build 1 Answer
Unity 5 use PushAssetDependencies and PopAssetDependencies 0 Answers
Unity windows build exit before asset import 0 Answers
Adding additional C# scripts after build (Android, iOS) 1 Answer
Unity Build nullReference, but editor sees through it! 1 Answer