Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

Finds the index of the first occurrence of a particular value in this list.
Read time 1 minuteLast updated 10 days ago

Definition

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

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

public static int IndexOf<T, U>(this ref FixedList32Bytes<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.