Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSubArray(int, int)

Gets a view into an array starting at the specified index.
Read time 1 minuteLast updated 5 days ago

Definition

public NativeArray<T> GetSubArray(int start, int length)

Parameters

start

The start index of the sub array.

length

The length of the sub array.

Returns

Type

Description

NativeArray<T>A view into the array that aliases the original array, which can't be disposed.