HashSetPool<T>
A version of CollectionPool<TCollection, TItem> for HashSets.
阅读时间1 分钟最后更新于 1 个月前
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); }}