docs.unity3d.com
    目次を表示する/隠す

    Class GenericPool<T>

    Generic pool.

    Inheritance
    Object
    GenericPool<T>
    Namespace: UnityEngine.Rendering
    Syntax
    public static class GenericPool<T> : object where T : new()
    Type Parameters
    Name Description
    T

    Type of the objects in the pull.

    Methods

    Get()

    Get a new object.

    Declaration
    public static T Get()
    Returns
    Type Description
    T

    A new object from the pool.

    Get(out T)

    Get a new PooledObject

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

    Output typed object.

    Returns
    Type Description
    ObjectPool.PooledObject<>

    A new PooledObject.

    Release(T)

    Release an object to the pool.

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

    Object to release.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)