- Home /
How to prevent resources being unloaded unintentionally
I have a folder with Prefabs in it and at the beginning of my game they are loaded using Resources.LoadAll and stored in an array. I use this array to instantiate gameobjects throughout the game and at some point, usually after a few hours (this is happening on my linux server) it seems as though they get unloaded and new gameobjects I instantiate from those prefabs throw a NullReferenceException when I try to access the transform.
Is this an improper usage of Resources.LoadAll? If not how can I prevent them from being unloaded?
Your answer
Follow this Question
Related Questions
Prevent Unloading assets for Reloading scene for a second time! 1 Answer
Best practice for loading unloading characters with animation. 2 Answers
Resources.load 1 Answer
Prevent Resources class from loading assets when application starts 1 Answer
How can I include the resources folder to my project and build it to play on android devices? 1 Answer