Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RemoveRange(int, int)

Removes "N" elements of a range. Shifts everything above the range down by "N" and decrements the length by "N".
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public void RemoveRange(int index, int count)

Parameters

index

The first index of the range to remove.

count

The number of elements to remove.

Remarks

If you don't care about preserving the order of the elements,
RemoveAtSwapBack
is a more efficient way to remove elements.