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