Remove<T, U>(ref FixedList64Bytes<T>, U)
Removes the first occurrence of a particular value in this list.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
Remove<T, U>(FixedList64Bytes<T>, T)
public static bool Remove<T, U>(this ref FixedList64Bytes<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, FixedList64BytesExtensions.RemoveSwapBack is a cheaper alternative.