ObjectPool.

GetSharedComponentPool<T>(T, int, bool) Method

Summary

The first time this method is called for a particular `original` it will call Weaver.ObjectPool.CreateComponentPool``1(``0,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
ObjectPool

Syntax

public static ObjectPool<T> GetSharedComponentPool<T>(T original, int preAllocate = 0, bool releaseOnSceneUnload = true) 
    where T : Component

Type Parameters

Name Description
T

Parameters

Name Type Description
original T
preAllocate int
releaseOnSceneUnload bool

Return Value

Type Description
ObjectPool<T>