Hi
I have question which way is better…
In my game I’am loading my prefabs from script :
Gameobject myobj = Instatiate(Resources.Load(“…”) as GameObject;
then I’am adding all this to the generic list and when the level is finished I’am destroying all objects and cleaning all list or making gameobjects setActive to false. It’s works fine.
but maybe its better:
Object myobj = Resources.Load(“…”);
Then make a casting from object to GameObject somehow and Instatiate
and then
Resources.UnloadAssets(myobj);
Can someone explain my this a little better ? ![]()
Thank you in advance