Class ArrayExtensions
Namespace: Unity.Collections
Syntax
public static class ArrayExtensions
Methods
IndexOf<T>(NativeArray<T>, T)
Declaration
public static int IndexOf<T>(this NativeArray<T> array, T value)
where T : struct, IComparable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeArray<T> | array | |
T | value |
Returns
Type | Description |
---|---|
Int32 |
Type Parameters
Name | Description |
---|---|
T |