PooledList.

GetSharedPrefabPool(GameObject, int, bool) Method

Summary

The first time this method is called for a particular `original` it will call Weaver.PooledList.CreatePrefabPool(UnityEngine.GameObject,System.Int32,System.Boolean) and cache the returned pool so that subsequent calls using the same `original` will return the same pool.
Assembly
Weaver.dll
Namespace
Weaver
Containing Type
PooledList

Syntax

public static PooledList<GameObject> GetSharedPrefabPool(GameObject original, int preAllocate = 0, bool releaseOnSceneLoad = true)

Parameters

Name Type Description
original GameObject
preAllocate int
releaseOnSceneLoad bool

Return Value

Type Description
PooledList<GameObject>