Class PrefabPooledObjectExtensions
- Namespace
- TAssetBundle.Extensions
- Assembly
- TAssetBundle.Extensions.dll
public static class PrefabPooledObjectExtensions
- Inheritance
-
PrefabPooledObjectExtensions
- Inherited Members
Methods
FreePrefab(GameObject)
Frees the prefab associated with the given GameObject. If the GameObject has a PrefabPooledObject component, it will be returned to the pool. Otherwise, the GameObject will be destroyed.
public static void FreePrefab(this GameObject go)
Parameters
go
GameObjectThe GameObject whose prefab will be freed.