Show / Hide Table of Contents

Class PrefabPool

Simplified prefab implementation.

Inheritance
System.Object
ObjectPool<GameObject>
PrefabPool
Inherited Members
ObjectPool<GameObject>.CountAll
ObjectPool<GameObject>.CountActive
ObjectPool<GameObject>.CountInactive
ObjectPool<GameObject>.PreWarm(Int32)
ObjectPool<GameObject>.Get()
ObjectPool<GameObject>.TryGet(Predicate<GameObject>, GameObject)
ObjectPool<GameObject>.Get(GameObject)
ObjectPool<GameObject>.Release(GameObject)
ObjectPool<GameObject>.Clear()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: StansAssets.Foundation.Patterns
Assembly: cs.temp.dll.dll
Syntax
public class PrefabPool : ObjectPool<GameObject>

Constructors

PrefabPool(GameObject, Int32)

Prefab pool default implementation will use as the create action, and when object is taken or released. />

Declaration
public PrefabPool(GameObject prefabLink, int defaultCapacity = 10)
Parameters
Type Name Description
GameObject prefabLink

The prefab instance you would like to pool.

System.Int32 defaultCapacity

The default capacity the stack will be created with.

In This Article
Back to top Generated by DocFX