Documentation

Unity Engine


Unity Engine


RemoveAt(int)

Removes the element at an index, shifting everything above it down by one. Decrements the length by 1.
Read time 1 minuteLast updated 10 days ago

Definition

public void RemoveAt(int index)

Parameters

index

The index of the element to remove.

Remarks

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