Method Instantiate
Instantiate(IResourceLocation, Transform, bool, bool)
Instantiate a single object. Note that the dependency loading is done asynchronously, but generally the actual instantiate is synchronous.
선언
[Obsolete]
public static AsyncOperationHandle<GameObject> Instantiate(IResourceLocation location, Transform parent = null, bool instantiateInWorldSpace = false, bool trackHandle = true)
파라미터
타입 | 이름 | 설명 |
---|---|---|
IResourceLocation | location | The location of the Object to instantiate. |
Transform | parent | Parent transform for instantiated object. |
bool | instantiateInWorldSpace | Option to retain world space when instantiated with a parent. |
bool | trackHandle | If true, Addressables will track this request to allow it to be released via the result object. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<GameObject> | The operation handle for the request. |
참고
Instantiate(IResourceLocation, Vector3, Quaternion, Transform, bool)
Instantiate a single object. Note that the dependency loading is done asynchronously, but generally the actual instantiate is synchronous.
선언
[Obsolete]
public static AsyncOperationHandle<GameObject> Instantiate(IResourceLocation location, Vector3 position, Quaternion rotation, Transform parent = null, bool trackHandle = true)
파라미터
타입 | 이름 | 설명 |
---|---|---|
IResourceLocation | location | The location of the Object to instantiate. |
Vector3 | position | The position of the instantiated object. |
Quaternion | rotation | The rotation of the instantiated object. |
Transform | parent | Parent transform for instantiated object. |
bool | trackHandle | If true, Addressables will track this request to allow it to be released via the result object. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<GameObject> | The operation handle for the request. |
참고
Instantiate(object, Transform, bool, bool)
Instantiate a single object. Note that the dependency loading is done asynchronously, but generally the actual instantiate is synchronous.
선언
[Obsolete]
public static AsyncOperationHandle<GameObject> Instantiate(object key, Transform parent = null, bool instantiateInWorldSpace = false, bool trackHandle = true)
파라미터
타입 | 이름 | 설명 |
---|---|---|
object | key | The key of the location of the Object to instantiate. |
Transform | parent | Parent transform for instantiated object. |
bool | instantiateInWorldSpace | Option to retain world space when instantiated with a parent. |
bool | trackHandle | If true, Addressables will track this request to allow it to be released via the result object. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<GameObject> | The operation handle for the request. |
참고
Instantiate(object, Vector3, Quaternion, Transform, bool)
Instantiate a single object. Note that the dependency loading is done asynchronously, but generally the actual instantiate is synchronous.
선언
[Obsolete]
public static AsyncOperationHandle<GameObject> Instantiate(object key, Vector3 position, Quaternion rotation, Transform parent = null, bool trackHandle = true)
파라미터
타입 | 이름 | 설명 |
---|---|---|
object | key | The key of the location of the Object to instantiate. |
Vector3 | position | The position of the instantiated object. |
Quaternion | rotation | The rotation of the instantiated object. |
Transform | parent | Parent transform for instantiated object. |
bool | trackHandle | If true, Addressables will track this request to allow it to be released via the result object. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<GameObject> | The operation handle for the request. |
참고
Instantiate(object, InstantiationParameters, bool)
Instantiate a single object. Note that the dependency loading is done asynchronously, but generally the actual instantiate is synchronous.
선언
[Obsolete]
public static AsyncOperationHandle<GameObject> Instantiate(object key, InstantiationParameters instantiateParameters, bool trackHandle = true)
파라미터
타입 | 이름 | 설명 |
---|---|---|
object | key | The key of the location of the Object to instantiate. |
InstantiationParameters | instantiateParameters | Parameters for instantiation. |
bool | trackHandle | If true, Addressables will track this request to allow it to be released via the result object. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<GameObject> | The operation handle for the request. |
참고
Instantiate(IResourceLocation, InstantiationParameters, bool)
Instantiate a single object. Note that the dependency loading is done asynchronously, but generally the actual instantiate is synchronous.
선언
[Obsolete]
public static AsyncOperationHandle<GameObject> Instantiate(IResourceLocation location, InstantiationParameters instantiateParameters, bool trackHandle = true)
파라미터
타입 | 이름 | 설명 |
---|---|---|
IResourceLocation | location | The location of the Object to instantiate. |
InstantiationParameters | instantiateParameters | Parameters for instantiation. |
bool | trackHandle | If true, Addressables will track this request to allow it to be released via the result object. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<GameObject> | The operation handle for the request. |