Provides extension methods for the NetworkArray class.
More...
Provides extension methods for the NetworkArray class.
◆ GetRef< T >()
static ref T GetRef< T > |
( |
this NetworkArray< T > |
array, |
|
|
int |
index |
|
) |
| |
|
static |
Returns a reference to the element at a specified position in the NetworkArray.
- Parameters
-
array | The NetworkArray to search. |
index | The zero-based index of the element to get a reference for. |
- Returns
- A reference to the element at the specified position in the NetworkArray.
◆ IndexOf< T >()
static int IndexOf< T > |
( |
this NetworkArray< T > |
array, |
|
|
T |
elem |
|
) |
| |
|
static |
Finds the index of the first occurrence of a specified element in the NetworkArray.
- Parameters
-
- Returns
- The zero-based index of the first occurrence of elem within the entire NetworkArray, if found; otherwise, -1.
- Type Constraints
-
T | : | unmanaged | |
T | : | IEquatable<T> | |