DataStorageComponent¶
Attach to a GameObject to give it a local DataStorage for storing and retrieving typed key-value data at runtime.
Namespace: Jungle.Data
Inherits: MonoBehaviour
Overview¶
DataStorageComponent wraps a DataStorage instance on a GameObject. Use it to give any object a local key-value store that can be queried by Keys at runtime. Systems read and write data through the storage without coupling to each other.
Properties¶
| Property | Type | Description |
|---|---|---|
| dataStorage | DataStorage |
The underlying key-value data store. |
Methods¶
| Method | Description |
|---|---|
Value() |
Returns the DataStorage instance. |
SetValue(DataStorage) |
Replaces the DataStorage instance. |