기술 자료

Unity Engine

Unity Engine

IndexOf<T, U>(ref FixedList128Bytes<T>, U)

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

Definition

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

IndexOf<T, U>(FixedList128Bytes<T>, T)

public static int IndexOf<T, U>(this ref FixedList128Bytes<T> container, U value) where T : unmanaged, IEquatable<U>

Parameters

The list to search.

value

T
The value to locate.

Returns

Type

Description

intThe index of the first occurrence of the value. Returns -1 if no occurrence is found.