Class PlayAssetDeliveryInitialization
IInitializableObject that configures Addressables for loading content from asset packs.
Implements
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
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 |
---|---|---|
Resource |
rm | The current instance of Resource Manager. |
string | id | The id of the object. |
string | data | Serialized data for the object. |
Returns
Type | Description |
---|---|
Async |
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 Play |
Returns
Type | Description |
---|---|
bool | True to log warnings, otherwise returns false. Default value is true. |