I am currently trying to design the best possible way to effectively lazy load my gameobject resources, but let me explain the situation.
I need to read data off a text file(This text file could be massive), and I need to map data from the text file into unity gameobjects that have a particular monobehaviour. Now I cant to instantiate all of these gameobjects at runtime, as it would probably destroy the memory/performance of my application.
The properties that are imported are the properties that will go on the monobehaviour. Now I have considered creating a data/struct like class to hold these properties until they are needed and can be set on the monobehaviour, or better yet just put the data class inside the monobehaviour class.
But I am just wondering if there is a standard way to handle something like this?
Thank you!