docs.unity3d.com
    Show / Hide Table of Contents

    Constructor BlobBuilder

    BlobBuilder(Allocator, Int32)

    Constructs a BlobBuilder object.

    Declaration
    public BlobBuilder(Allocator allocator, int chunkSize = 65536)
    Parameters
    Type Name Description
    Allocator 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.

    Int32 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.

    Back to top
    Terms of use
    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