Method ProvideInstance
ProvideInstance(IInstanceProvider, IResourceLocation, InstantiationParameters)
Asynchronously instantiate a prefab (GameObject) at the specified location.
선언
public AsyncOperationHandle<GameObject> ProvideInstance(IInstanceProvider provider, IResourceLocation location, InstantiationParameters instantiateParameters)
파라미터
| 타입 | 이름 | 설명 |
|---|---|---|
| IInstanceProvider | provider | An implementation of IInstanceProvider that will be used to instantiate and destroy the GameObject. |
| IResourceLocation | location | Location of the prefab. |
| InstantiationParameters | instantiateParameters | A struct containing the parameters to pass the the Instantiation call. |
반환
| 타입 | 설명 |
|---|---|
| AsyncOperationHandle<GameObject> | Async operation that will complete when the prefab is instantiated. |