Key¶
A named ScriptableObject identifier used across Jungle systems — DataStorage, Inventory, State Machines, and any feature that needs refactor-safe lookup.
Namespace: Jungle.Data
Inherits: ScriptableObject
Overview¶
Key is a lightweight ScriptableObject that acts as a typed lookup identifier. Create Key assets from the menu (Jungle/Data/Key) and use them anywhere a system needs to address a value by name without resorting to magic strings.
Key is the standard identifier across Jungle:
- DataStorage stores and retrieves values by Key.
- Inventory identifies item entries and slots by Key.
- StateMachine addresses each of its states by Key, and transitions reference their target state by Key.
Because Keys are assets, references survive renames and refactors — Unity tracks them by GUID, not by name.