Construct<T>(ref BlobArray<T>, params T[])
Copies an array of structs to an array in a blob asset after allocating the necessary memory.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
Construct<T>(BlobArray<T>, `<>[])
public BlobBuilderArray<T> Construct<T>(ref BlobArray<T> blobArray, params T[] data) where T : struct
Parameters
A reference to a BlobArray field in a blob asset.
An array containing structs of type .
TReturns
Type | Description |
|---|---|
| BlobBuilderArray<T> | A reference to the newly constructed array as a mutable BlobBuilderArray instance. |