Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

NativeArray<T0>.this[int]

public T this[int];

Description

Provides read-only access to ReadOnly elements by index.

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

Additional resources: ReadOnly.UnsafeElementAt.