- Home /
How can I dynamically load assets when they're needed?
In the latest build of my project I added about 500MBs of music. Since by default all assets in the game are loaded when you click "Play" in the launcher, this has dramatically increased the time the game takes to load, and it even makes the game crash before fully loading on some of my friends' PCs.
So instead of loading everything at runtime, is there a way to load music just before it starts playing? In fact, music doesn't even start playing in my game until ~60 seconds in, so is there a way to load everything but the music at runtime and then smoothly load in the music over those 60 seconds?
Answer by Cornelis-de-Jager · Jul 13, 2017 at 02:48 AM
You can use Resources.Load().
See the answer on this post: http://answers.unity3d.com/questions/14748/c-resourcesload-problem.html
Your answer
Follow this Question
Related Questions
Are the assets of referenced assets loaded into memory? 1 Answer
Prevent Resources class from loading assets when application starts 1 Answer
_Assets store will not load 0 Answers
Prevent Unloading assets for Reloading scene for a second time! 1 Answer
Best practice for loading unloading characters with animation. 2 Answers