Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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); }}

Inheritance

Inherited Members

  • CollectionPool<HashSet<T>, T>.Get()
  • CollectionPool<HashSet<T>, T>.Get(HashSet<T>)
  • CollectionPool<HashSet<T>, T>.Release(HashSet<T>)