기술 자료

Unity Engine

Unity Engine

Remove<T, U>(ref FixedList512Bytes<T>, U)

Removes the first occurrence of a particular value in this list.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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

Remove<T, U>(FixedList512Bytes<T>, T)

public static bool Remove<T, U>(this ref FixedList512Bytes<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

boolTrue 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, FixedList512BytesExtensions.RemoveSwapBack is a cheaper alternative.