SliceConvert<U>()
Reinterprets a NativeSlice with a different data type (type punning).
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.CoreModule
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. |