Version: 2023.2
LanguageEnglish
  • C#

NativeSlice<T0> Constructor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public NativeSlice<T0>(NativeArray<T> array);

Declaration

public NativeSlice<T0>(NativeArray<T> array, int start);

Declaration

public NativeSlice<T0>(NativeArray<T> array, int start, int length);

Declaration

public NativeSlice<T0>(NativeSlice<T> slice, int start);

Declaration

public NativeSlice<T0>(NativeSlice<T> slice, int start, int length);

Parameters

array The NativeArray.
slice The NativeSlice.
start The start index in the array or slice.
length The number of elements that the new slice will have.

Description

Constructs a new slice from a NativeArray or NativeSlice.