- Home /
Accesing and Loading resources best practices
Hi!,
After some time playing with Unity I'm aware that I don't really have a good way to access/loading resources. I mean, I know the ways to do it but it is a bit hard to choose the best one. Here are some options for you to explain wich you use and why. I think this could help other people in my same situacion. Here I am:
1) Have a class with a lot of members (ussually they will hold prefabs) where you drag in the editor all the needed resources. This has the disadvantage that everything is loaded (I think) the first time. Another disadvantage is that you need to have a dummy gameobject to keep all the dragged data.
2) Have some scriptable objects split by world, level, etc... and loaded with the Asset manager. This way we just load what we need but it is a bit less comfortable than 1.
3) Have everything in a Resource folder and load them from code when needed. This is the one that gives the greatest granurality and reasembles to what we did when we made games on C++, etc... But is not as comfortable as the others.
Could anyone comment his/her experiences?
Thanks in advance.
Your answer
![](https://koobas.hobune.stream/wayback/20220613083001im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Loading a mesh? 1 Answer
2D Infinite Runner questions 3 Answers
Resource.load general question 0 Answers