文档

Unity Engine

Unity Engine

Length

The number of elements in the array.
阅读时间1 分钟最后更新于 19 天前

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.