Scriptable Object references to prefabs memory load?

Hi there,

On previous projects, i had a “Factory” prefab, holding a dictionary of ID vs Prefab, in order to instantiate all the tiles of my game. The server simply sent an array of ids, and the level was generated instantiating every prefab matching the id in the dictionary.

That showed to be a bad approach, because whenever the Factory was instantiated, all of the referenced prefabs where loaded in memory aswell.
That’s why we changed the dictionary to be a ID vs String of paths , but it was quite hard to mantain, because we had to be very careful when typing the paths, and we had to move every single prefab to the resources folder.

My question is: If we store the dictionary in a scriptableobject, referencing all the prefabs, will happen the same as if it was a prefab? Will all of the referenced prefabs be loaded in memory whenever we access the scriptableobject?

Thanks!
Oakshiro

I found the answer here