We have a MonoBehaviour component holding a long list of prefabs (can be 100). Those prefabs are meant to be created/destroyed as needed. The component is singleton getting created on first usage.
The question is related to the memory usage, using a mono behaviour component, I understand this means all the prefabs are being loaded onto the disk when creating the component. I am looking at a way to limit the loading of those rarely used prefabs.
I thought of having them in different scriptable objects so only the lists from used prefabs would get loaded, with the lists of less common prefabs most likely rarely or never loaded.
I am looking at tips on the topic.