docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Construct

    Construct<T>(ref BlobArray<T>, params T[])

    Copies an array of structs to an array in a blob asset after allocating the necessary memory.

    Declaration
    public BlobBuilderArray<T> Construct<T>(ref BlobArray<T> blobArray, params T[] data) where T : struct
    Parameters
    Type Name Description
    BlobArray<T> blobArray

    A reference to a BlobArray field in a blob asset.

    T[] data

    An array containing structs of type T.

    Returns
    Type Description
    BlobBuilderArray<T>

    A reference to the newly constructed array as a mutable BlobBuilderArray instance.

    Type Parameters
    Name Description
    T

    The struct data type.

    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)