Hi all,
I’m new to Unity and I want to create models presentation with Unity. I have 500+ models and want to display them as miniatures in tile list. When selecting one it will become fullscreen. I would like to know if it’s possible to load them on demand (some sort of lazy loading) ? How would you achieve this goal?
Thanks for any help
You can load assets during runtime
Thank you for the tip. Managing so many assets is a nightmare. Is it possible to load them from external localization on hard drive using some sort of config file like XML?
hi all…
my problem exactly… well, almost… is it possible to load 3ds files using Resources.Load(“path/to/my/3ds/file”) during runtime?
after loading it I will need to be able to dynamically change textures…
any help please?
thanks.
You can load Models using Resources.Load.
You can interact with it the same way you can interact with any other model in code, so it can be modified, so you would need to access it’s .renderer.material and change it as you will.
The Structure of the model will be in the same format it is in the Project panel.
Also note that Resources.Load loads from a folder named Resources and not from other sections of the assets folder.
As far as external loading from an XML, I am doing something similar and I have started using the WWW class instead as I need it for text and textures. The problem for me is that you cannot add to the resources folder post build. But it is possible to take an XML and read in files to load, and has helped me so far.