Method At
At<T>(NativeArray<T>, int)
Retrieves a reference to an element of a native array.
Declaration
public static ref T At<T>(this NativeArray<T> nativeArray, int index) where T : struct
Parameters
Type | Name | Description |
---|---|---|
Native |
nativeArray | |
int | index | Index of the native array element. |
Returns
Type | Description |
---|---|
T | Reference to the element at the index passed as argument. |
Type Parameters
Name | Description |
---|---|
T |
At<T>(NativeList<T>, int)
Retrieves a reference to an element of a native list.
Declaration
public static ref T At<T>(this NativeList<T> nativeList, int index) where T : struct
Parameters
Type | Name | Description |
---|---|---|
Native |
nativeList | |
int | index | Index of the native list element. |
Returns
Type | Description |
---|---|
T | Reference to the element at the index passed as argument. |
Type Parameters
Name | Description |
---|---|
T |
At<T>(NativeSlice<T>, int)
Retrieves a reference to an element of a native slice.
Declaration
public static ref T At<T>(this NativeSlice<T> nativeSlice, int index) where T : struct
Parameters
Type | Name | Description |
---|---|---|
Native |
nativeSlice | |
int | index | Index of the native slice element. |
Returns
Type | Description |
---|---|
T | Reference to the element at the index passed as argument. |
Type Parameters
Name | Description |
---|---|
T |