Interface IInitializableObject
Interface for objects that support post construction initialization via an id and byte array.
Namespace: UnityEngine.ResourceManagement.Util
Syntax
public interface IInitializableObject
Methods
Initialize(String, String)
Initialize a constructed object.
Declaration
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 |
---|---|
Boolean | The result of the initialization. |
InitializeAsync(ResourceManager, String, String)
Async operation for initializing a constructed object.
Declaration
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 |