文档

Unity Engine

Unity Engine

SliceConvert<U>()

Reinterprets a NativeSlice with a different data type (type punning).
阅读时间1 分钟最后更新于 1 个月前

Definition

SliceConvert<T>()

public NativeSlice<U> SliceConvert<U>() where U : struct

Returns

Type

Description

NativeSlice<T>A new NativeSlice<T> that views the same memory, but is reinterpreted as the target type.