ドキュメント

Unity Engine

Unity Engine

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

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

Definition

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

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

public static int IndexOf<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.

Returns

Type

Description

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