Documentation

Unity Engine

Download Unity

Unity Engine

Length

The number of elements in the array.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Property
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public int Length { get; }

Remarks

Unity assigns the length of the array when you call BlobBuilder.CreateBlobAssetReference, so until then this property returns 0. To get the number of elements before that point, use the BlobBuilderArray<T>.Length property of the BlobBuilderArray<T> that BlobBuilder.Allocate returns.