This version of Unity is unsupported.

ReadOnly

struct in Unity.Collections

/

Implemented in:UnityEngine.CoreModule

Description

NativeArray interface constrained to read-only operation.

Properties

LengthNumber of elements in the NativeArray.ReadOnly.
this[int]Read-only access to NativeArray.ReadOnly elements by index.

Public Methods

CopyToCopy all elements to a NativeArray or managed array of the same length.
GetEnumeratorGet enumerator.
ReinterpretReinterpret the array as having a different data type (type punning).
ToArrayConvert the data in this NativeArray.ReadOnly to a managed array.