docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor BlobBuilder

    BlobBuilder(AllocatorHandle, int)

    Constructs a BlobBuilder object.

    Declaration
    public BlobBuilder(AllocatorManager.AllocatorHandle allocator, int chunkSize = 65536)
    Parameters
    Type Name Description
    AllocatorManager.AllocatorHandle allocator

    The type of allocator to use for the BlobBuilder's internal, temporary data. Use Temp unless the BlobBuilder exists across more than four Unity frames.

    int chunkSize

    (Optional) The minimum amount of memory to allocate while building an asset. The default value should suit most use cases. A smaller chunkSize results in more allocations; a larger chunkSize could increase the BlobBuilder's total memory allocation (which is freed when you dispose of the BlobBuilder.

    In This Article
    Back to top
    Copyright © 2024 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)