기술 자료

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".
읽는 시간 1분최근 업데이트: 한 달 전

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.