Summary
If the `pool` isn't null this method gives the `component` to it, disables its
UnityEngine.GameObject
,
and returns true. Otherwise this method destroys the UnityEngine.GameObject
and returns false.
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Containing Type
- ObjectPool
Syntax
public static bool TryReleaseOrDestroyGameObject(this ObjectPool<GameObject> pool, GameObject gameObject)
Parameters
Name | Type | Description |
---|---|---|
pool | ObjectPool |
|
gameObject | GameObject |
Return Value
Type | Description |
---|---|
bool |