Method ReleaseInstance
ReleaseInstance(GameObject)
Releases and destroys an object that was created via Addressables.InstantiateAsync.
선언
public static bool ReleaseInstance(GameObject instance)
파라미터
타입 | 이름 | 설명 |
---|---|---|
GameObject | instance | The GameObject instance to be released and destroyed. |
반환
타입 | 설명 |
---|---|
bool | Returns true if the instance was successfully released. |
ReleaseInstance(AsyncOperationHandle)
Releases and destroys an object that was created via Addressables.InstantiateAsync.
선언
public static bool ReleaseInstance(AsyncOperationHandle handle)
파라미터
타입 | 이름 | 설명 |
---|---|---|
AsyncOperationHandle | handle | The handle to the game object to destroy, that was returned by InstantiateAsync. |
반환
타입 | 설명 |
---|---|
bool | Returns true if the instance was successfully released. |
ReleaseInstance(AsyncOperationHandle<GameObject>)
Releases and destroys an object that was created via Addressables.InstantiateAsync.
선언
public static bool ReleaseInstance(AsyncOperationHandle<GameObject> handle)
파라미터
타입 | 이름 | 설명 |
---|---|---|
AsyncOperationHandle<GameObject> | handle | The handle to the game object to destroy, that was returned by InstantiateAsync. |
반환
타입 | 설명 |
---|---|
bool | Returns true if the instance was successfully released. |