Struct ObjectInitializationData
Contains data used to construct and initialize objects at runtime.
Inherited Members
Namespace: UnityEngine .ResourceManagement .Util
Assembly: Unity.ResourceManager.dll
Syntax
[Serializable]
public struct ObjectInitializationData
Properties
Name | Description |
---|---|
Data | String representation of the data that will be passed to the IInitializableObject.Initialize method of the created object. This is usually a JSON string of the serialized data object. |
Id | The object id. |
Object |
The object type that will be created. |
Methods
Name | Description |
---|---|
Create |
Create an instance of the defined object. Initialize will be called on it with the id and data if it implements the IInitializableObject interface. |
Create |
Construct a serialized data for the object. |
Create |
Construct a serialized data for the object. |
Get |
Create an instance of the defined object. This will get the AsyncOperationHandle for the async Initialization operation if the object implements the IInitializableObject interface. |
Get |
Get the set of runtime types need to deserialized this object. This is used to ensure that types are not stripped from player builds. |
To |
Converts information about the initialization data to a formatted string. |