this[]
Provides read-only access to NativeArray<T>.ReadOnly elements by index.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Property
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
this[int]
public T this[int index] { get; }
Parameters
Returns
Type | Description |
|---|---|
| T |
Remarks
The elements of the array are returned by value, not by reference. If you need the reference, use the NativeArray<T>.ReadOnly.UnsafeElementAt method.
Additional Resources: NativeArray<T>.ReadOnly.UnsafeElementAt