기술 자료

Unity Engine

Download Unity

Unity Engine

RemoveAt(int)

Removes the element at an index. Shifts everything above the index down by one and decrements the length by 1.
읽는 시간 1분최근 업데이트: 2달 전

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
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,
RemoveAtSwapBack
is a more efficient way to remove an element.