Version: 2023.2

NativeSlice<T0>Constructor

切换到手册
public NativeSlice<T0> (NativeArray<T> array);
public NativeSlice<T0> (NativeArray<T> array, int start);
public NativeSlice<T0> (NativeArray<T> array, int start, int length);
public NativeSlice<T0> (NativeSlice<T> slice, int start);
public NativeSlice<T0> (NativeSlice<T> slice, int start, int length);

参数

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.

描述

Constructs a new slice from a NativeArray or NativeSlice.