docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor LinkedListNodeCache

    LinkedListNodeCache()

    Create a LinkedListNode cache. This is intended to be used to reduce GC allocations for LinkedLists.

    Declaration
    public LinkedListNodeCache()

    LinkedListNodeCache(int, int, int)

    Create a LinkedListNode cache. This is intended to be used to reduce GC allocations for LinkedLists.

    Declaration
    public LinkedListNodeCache(int maxNodesAllowed, int initialCapacity, int initialPreallocateCount)
    Parameters
    Type Name Description
    int maxNodesAllowed

    Specify a number greater than zero to limit the number of nodes that can be in the pool.

    int initialCapacity

    Specify a number greater than zero to preallocate a certain number of nodes.

    int initialPreallocateCount

    The number of nodes to start in the linked list cache.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)