- Home /
Question by
snailguides · Mar 05, 2017 at 03:31 PM ·
editor-scriptingscriptable object
ScriptableObject reference in scene loading time issue
Assume I have a ScriptableObject which contains all of inventory items:
public class InventoryItemList : ScriptableObject
{
public List<InventoryItem> itemList = new List<InventoryItem>();
}
And each InventoryItem have all heavy information like meshes, textures... And the list has ton of items.
When I use it, i've referenced the InventoryItemList in my scene's object:
My question is does this a right way of loading database items ?, because some items may only be seen as special event, or only available on other scenes. But this way of loading seem to load all of items into the memory as the scene loaded. If this is bad, what is the right solution? Thanks in advanced, any help is highly appreciated.
scriptableobject1.png
(3.0 kB)
Comment