ドキュメント

Unity Engine

Unity Engine

RemoveAt(int)

Removes the element at an index, shifting everything above it down by one. Decrements the length by 1.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

Parameters

index

The index of the item to remove.

Remarks

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