Scripting API

NativeArray<T>.ReadOnly

struct in Unity.Collections · UnityEngine.CoreModule

Not in Unity's public API, or in an assembly the coverage doesn't count.
In Tassix

A read-only view of the array.

Properties 3

bool IsCreated { get; }
int Length { get; }
T this[int index] { get; }

Methods 6

ReadOnlySpan<T> AsReadOnlySpan()
void CopyTo(T[] array)
void CopyTo(NativeArray<T> array)
Enumerator GetEnumerator()
NativeArray<U>.ReadOnly Reinterpret<U>()
T[] ToArray()
ref readonly T UnsafeElementAt(int index)

Operators 1

static implicit operator ReadOnlySpan<T>(in ReadOnly source)

Checked against Unity

Conformance scenarios that exercise it, recorded in Unity and compared event by event.