Reinterpret<U>()
Returns a dynamic buffer of a different type, pointing to the same buffer memory.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
Reinterpret<T>()
public DynamicBuffer<U> Reinterpret<U>() where U : unmanaged
Returns
Type | Description |
|---|---|
| DynamicBuffer<T> | A dynamic buffer of the reinterpreted type. |
Remarks
No memory modification occurs. The reinterpreted type must be the same size in memory as the original type.