Method ProvideInstance
ProvideInstance(ResourceManager, AsyncOperationHandle<GameObject>, InstantiationParameters)
Provide an instance of a loaded GameObject
Declaration
public GameObject ProvideInstance(ResourceManager resourceManager, AsyncOperationHandle<GameObject> prefabHandle, InstantiationParameters instantiateParameters)
Parameters
Type | Name | Description |
---|---|---|
ResourceManager | resourceManager | The resource manager to use |
AsyncOperationHandle<GameObject> | prefabHandle | The operation handle with a reference to the object to instantiate |
InstantiationParameters | instantiateParameters | Container for data to specficy how to instantiate |
Returns
Type | Description |
---|---|
GameObject | The instance GameObject |