BlobArray<T>
An immutable array of value types stored in a blob asset.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Struct
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public struct BlobArray<T> where T : struct
Remarks
When creating a blob asset, use the BlobBuilderArray<T> provided by a BlobBuilder instance to set the array elements.
Additional Resources: BlobBuilder
Properties
Property | Description |
|---|---|
| this[] | The element of the array at the |
| Length | The number of elements in the array. |
Methods
Method | Description |
|---|---|
| AsSpan | Returns a ReadOnlySpan_1 view of the blob array data. |
| GetUnsafePtr | Provides an unsafe pointer to the array data. |
| ToArray | Copies the elements of this BlobArray to a new managed array. |