Why Resources.Load?

I’ve been reading some threads on this here, but am still a little fuzzy on the matter.

  1. Why would I ever use Resources.Load?
  2. When should/could I use it?
  3. I have a game that that is pretty heavy on spritesheets/textures, how can Resources.Load help me?
  1. When you want to load assets at runtime.
  2. You have situation like: a table model will be fixed but you want to swap the texture of that table to make it different one, then what you will do? Drag all texture reference in the scene? This will kill your game. So, you will want to load each of them on demand.

Hope this will help.

Hi,

I have the same question as marklennartprice especially his 3rd question. If you have an app that is heavy on sprites/textures, how can I use resources.load to help optimise the app?

Thanks.
-Hakimo

resources allow you to load stuff as you need them instead of having them permanentely around (-> placed in the scene) and eating ram you don’t have spare for such a task

Sorry I just noticed the reply. I’ve already upload files using Resources.Load but how do I actually manage them? How do unload a single resource after being used? Do I have to call Resources.UnloadUnusedAssets afte reach use?

Thanks.
-Hakimo

basically yes or instantiate the objects and destroy them correctly again.