ドキュメント

Unity Engine

Unity Engine

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

Removes the first occurrence of a particular value in this list.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

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

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

Parameters

The list to search.

value

T
The value to locate and remove.

Returns

Type

Description

boolReturns 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, but the order of the remaining elements is not preserved.