Resources.Load() or Prefab manager?

I have a few Prefabs that I need to instantiate/use at runtime, and so far I have been using Resources.Load() to add them to the scene during gameplay.

But I was wondering if having a Prefab manager, present in every scene, would be a better idea. For example, I could set the number of Prefabs I will need for each scene, and drag&drop them in the Prefab manager in the inspector. That way, the Prefabs are ready and I can use PrefabManager.AddPrefab(myPrefab), which would instantiate a new copy, or perhaps from another class: GameObject prefabCopy = Instantiate(PrefabManager.prefab01)…

Is Resources.Load() slow? Not slow enough to worry about performance? What do you guys think?

Thanks!

Stephane

Both Resources.Load and Instantiate are relatively slow, but a better solution could be to pool/cache your GameObject. Obviously at first you are going to need to Instantiate your object at least once, but if you have multiples of the object in your scene and these objects are recurring. When said object is no longer needed you simply “hide” it and move it away from the scene and then when an object of that type is needed you simply show it back again and the object will start up like before, this depends on how you set up your scripts.

This way is far less expensive and not at all hard to manage.

Edit: With your gameobject and you could even create its own Instantiate function which takes whatever parameters needed that will re-position it to where it is needed and make sure to reset variables if need be, example an enemies health back to 100 instead of its dead state (0 hp).