Remove<T, U>(ref FixedList32Bytes<T>, U)
Removes the first occurrence of a particular value in this list.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
Remove<T, U>(FixedList32Bytes<T>, T)
public static bool Remove<T, U>(this ref FixedList32Bytes<T> container, U value) where T : unmanaged, IEquatable<U>
Parameters
Returns
Type | Description |
|---|---|
| bool | True if the value was found and removed. |
Remarks
If a value is removed, all elements after it are shifted down by one, and the list's length is decremented by one.
If you don't need to preserve the order of the remaining elements, FixedList32BytesExtensions.RemoveSwapBack is a cheaper alternative.