Documentation

Unity Engine


Unity Engine


RemoveRange(int, int)

Removes "N" pointers in a range, shifting everything above the range down by "N". Decrements the length by "N".
Read time 1 minuteLast updated 9 days ago

Definition

public void RemoveRange(int index, int count)

Parameters

index

The index of the first pointer to remove.

count

The number of pointers to remove.

Remarks

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