docs.unity.cn
    Show / Hide Table of Contents

    Method Construct

    Construct<T>(ref BlobArray<T>, 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.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use