Documentation

Unity Engine

Download Unity

Unity Engine

Length

The count of elements.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Property
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public int Length { readonly get; set; }

Remarks

To decrease the memory used by a list, set NativeList<T>.Capacity after reducing the length of the list.