docs.unity3d.com
    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
    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