docs.unity.cn
    Show / Hide Table of Contents

    Class ListPool<T>

    List Pool.

    Inheritance
    Object
    ListPool<T>
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering
    Syntax
    public static class ListPool<T>
    Type Parameters
    Name Description
    T

    Type of the objects in the pooled lists.

    Methods

    Get()

    Get a new List

    Declaration
    public static List<T> Get()
    Returns
    Type Description
    List<T>

    A new List

    Get(out List<T>)

    Get a new list PooledObject.

    Declaration
    public static ObjectPool<List<T>>.PooledObject Get(out List<T> value)
    Parameters
    Type Name Description
    List<T> value

    Output typed List.

    Returns
    Type Description
    ObjectPool.PooledObject<>

    A new List PooledObject.

    Release(List<T>)

    Release an object to the pool.

    Declaration
    public static void Release(List<T> toRelease)
    Parameters
    Type Name Description
    List<T> toRelease

    List to release.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023