docs.unity3d.com
    Show / Hide Table of Contents

    Class DictionaryPool<TKey, TValue>

    Dictionary Pool.

    Inheritance
    Object
    DictionaryPool<TKey, TValue>
    Namespace: UnityEngine.Rendering
    Syntax
    public static class DictionaryPool<TKey, TValue>
    Type Parameters
    Name Description
    TKey

    Key type.

    TValue

    Value type.

    Methods

    Get()

    Get a new Dictionary

    Declaration
    public static Dictionary<TKey, TValue> Get()
    Returns
    Type Description
    Dictionary<TKey, TValue>

    A new Dictionary

    Get(out Dictionary<TKey, TValue>)

    Get a new dictionary PooledObject.

    Declaration
    public static ObjectPool<Dictionary<TKey, TValue>>.PooledObject Get(out Dictionary<TKey, TValue> value)
    Parameters
    Type Name Description
    Dictionary<TKey, TValue> value

    Output typed Dictionary.

    Returns
    Type Description
    ObjectPool.PooledObject<>

    A new Dictionary PooledObject.

    Release(Dictionary<TKey, TValue>)

    Release an object to the pool.

    Declaration
    public static void Release(Dictionary<TKey, TValue> toRelease)
    Parameters
    Type Name Description
    Dictionary<TKey, TValue> toRelease

    Dictionary to release.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023