Summary
If the `behaviour` was created by an
Weaver.ObjectPool`1 this method releases the `behaviour` 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<T>(this T behaviour) where T : PoolableBehaviour<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| behaviour | T |
Return Value
| Type | Description |
|---|---|
| bool |