Version: 2023.2
public T this[int] ;

描述

Read-only access to NativeArray.ReadOnly elements by index.

Note: The elements of the array are returned by value, not by reference. If you need reference use NativeArray.ReadOnly.UnsafeElementAt(int) method.

Additional resources: ReadOnly.UnsafeElementAt.