Class PlayAssetDeliveryInitialization
IInitializableObject that configures Addressables for loading content from asset packs.
Implements
IInitializableObject
Inherited Members
Namespace: UnityEngine.AddressableAssets.Android
Assembly: Unity.Addressables.Android.dll
Syntax
[Serializable]
public class PlayAssetDeliveryInitialization : IInitializableObject
Methods
Initialize(string, string)
Initialize a constructed object.
Declaration
public bool Initialize(string id, string data)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The id of the object. |
| string | data | Serialized data for the object. |
Returns
| Type | Description |
|---|---|
| bool | The result of the initialization. |
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<bool> | Async operation |
LogWarnings(string)
Determines whether warnings should be logged during initialization.
Declaration
public bool LogWarnings(string data)
Parameters
| Type | Name | Description |
|---|---|---|
| string | data | The JSON serialized PlayAssetDeliveryInitializationData object |
Returns
| Type | Description |
|---|---|
| bool | True to log warnings, otherwise returns false. Default value is true. |
Implements
UnityEngine.ResourceManagement.Util.IInitializableObject