HashSetPool<T>
A version of CollectionPool<TCollection, TItem> for HashSets.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEngine.Pool
- Assembly: UnityEngine.CoreModule
- Inherits from: CollectionPool<HashSet<T>, T>
public class HashSetPool<T> : CollectionPool<HashSet<T>, T>
Examples
using UnityEngine.Pool;public class Example{ void GetPooled() { // Get a pooled instance var instance = HashSetPool<int>.Get(); // Use the HashSet // Return it back to the pool HashSetPool<int>.Release(instance); }}