Class GenericPool<T>
Namespace: Unity.VisualScripting
Syntax
public static class GenericPool<T>
where T : class, IPoolable
Type Parameters
Name | Description |
---|---|
T |
Methods
Free(T)
Declaration
public static void Free(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
New(Func<T>)
Declaration
public static T New(Func<T> constructor)
Parameters
Type | Name | Description |
---|---|---|
Func<T> | constructor |
Returns
Type | Description |
---|---|
T |