Class CacheInitialization
IInitializableObject that sets up the Caching system.
Inherited Members
Namespace: UnityEngine.AddressableAssets.Initialization
Syntax
[Serializable]
public class CacheInitialization : IInitializableObject
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. |
Implements
InitializeAsync(ResourceManager, String, String)
Async operation for initializing a constructed object.
Declaration
public virtual AsyncOperationHandle<bool> InitializeAsync(ResourceManager rm, string id, string data)
Parameters
Type | Name | Description |
---|---|---|
ResourceManager | rm | The current instance of Resource Manager. |
String | id | The id of the object. |
String | data | Serialized data for the object. |
Returns
Type | Description |
---|---|
AsyncOperationHandle<Boolean> | Async operation |