Version: 2022.3

NativeSliceUnsafeUtility.ConvertExistingDataToNativeSlice

切换到手册
public static NativeSlice<T> ConvertExistingDataToNativeSlice (void* dataPointer, int stride, int length);

参数

length 元素的数量。
dataPointer 内存指针。
stride Stride in element size units.

返回

NativeSlice<T> The created NativeSlice.

描述

ConvertExistingDataToNativeSlice。