# RemoveSwapBack<T, U>(ref FixedList4096Bytes<T>, U)

> Removes the first occurrence of a particular value in this list.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## RemoveSwapBack\<T, U>(FixedList4096Bytes\<T>, T)

```csharp
public static bool RemoveSwapBack<T, U>(this ref FixedList4096Bytes<T> container, U value) where T : unmanaged, IEquatable<U>
```

### Parameters

**** (\[FixedList4096Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist4096bytes1)): The list to search.**** (T): The value to locate and remove.

### Returns

| Type                                                          | Description                          |
| ------------------------------------------------------------- | ------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the item is removed. |

### Remarks

If a value is removed, the last element of the list is copied to overwrite the removed value, and the list's length is decremented by one.

This is cheaper than [FixedList4096BytesExtensions.Remove](/engine/6000.7/script-reference/unity/collections/fixedlist4096bytesextensions/remove.md), but the order of the remaining elements is not preserved.
