Class CacheInitialization
IInitializableObject that sets up the Caching system.
Namespace: UnityEngine.AddressableAssets.Initialization
Syntax
[Serializable]
public class CacheInitialization : IInitializableObject
Properties
RootPath
The root path of the cache.
Declaration
public static string RootPath { get; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
Initialize(String, String)
Sets properties of the Caching system.
Declaration
public bool Initialize(string id, string dataStr)
Parameters
| Type | Name | Description |
|---|---|---|
| String | id | The id of thei object. |
| String | dataStr | The JSON serialized CacheInitializationData object. |
Returns
| Type | Description |
|---|---|
| Boolean | True if the initialization succeeded. |