Static helper functions for serializing and deserializing the inventory
Makes dictionaries serializable in the editor so they can be viewed and edited (mostly successful but not always)
ScriptableObject
used in Resources
to store and locate other ScriptableObject
instances more efficiently
Editor script for the ScriptableObjectLocator
to make items easier to add
- Links an
InventoryChannel
to anInventoryHolder
found on the same GameObject
- Make new
ScriptableObjectLocator
in theResources
directory.
Defaults to
"Assets/Resources/ScriptableObjects/SOLocator"
but can be changed inInventoryConverterHelper
class by editing thescriptableObjectLocatorResourceRelativePath
variable
- Click
Find InventoryItems
button to add them to the dictionary. - Add
InventorySaveSystemHolder
to the scene on the same GameObject as anInventoryHolder
- Assign it the appropriate inventory channel
- Call
RaiseInventoryImport()
from theInventoryChannel
ScriptableObject
to import - Call
RaiseInventoryExport()
from theInventoryChannel
ScriptableObject
to export