RemoveAt(int)
Removes the pointer at an index, shifting everything above it down by one. Decrements the length by 1.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
public void RemoveAt(int index)
Parameters
The index of the pointer to remove.
Remarks
If you don't care about preserving the order of the pointers, UnsafePtrList<T>.RemoveAtSwapBack is a more efficient way to remove pointers.