Documentation

Unity Engine


Unity Engine


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
index
position.
LengthThe number of elements in the array.

Methods

Method

Description

AsSpanReturns a ReadOnlySpan_1 view of the blob array data.
GetUnsafePtrProvides an unsafe pointer to the array data.
ToArrayCopies the elements of this BlobArray to a new managed array.