this[]
Provides read-only access to NativeArray<T>.ReadOnly elements by index.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Property
- Namespace: Unity.Collections
- Assembly: UnityEngine.CoreModule
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 ReadOnly.UnsafeElementAt(int) method.
Additional Resources: NativeArray<T>.ReadOnly.UnsafeElementAt.