- Home /
Long loading time between scenes
Don't know what to do
I'm pretty new to the Unity engine so I might have missed something.
I made a top-down shooter with player sprite, two enemy spawners and music. I have collision detection on the player, enemy and bullet.
I don't know why it's taking 10 seconds to load between scenes.
Answer by MusapKahraman · Apr 29, 2020 at 06:22 AM
I have a feeling that you are having a problem with the audio import settings. Your music file might have an impact on the loading times of your scenes. Here is a helpful blog post about the topic.
Thanks for that, I will look into that. I did suspect that the audio might be the problem
Answer by Cassos · Apr 28, 2020 at 08:04 PM
Do you spawn the enemies via script or are they already in the scene? 2d or 3d? Any error messages?
@Cassos I use a script. The enemies are prefabs that I spawn in. It's a 2d game and I get this error message when I die
"$$anonymous$$issingReferenceException: The object of type 'Transform' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object."
Your answer