文档

Unity Engine

Download Unity

Unity Engine

Reinterpret<U>()

Returns a dynamic buffer of a different type, pointing to the same buffer memory.
阅读时间1 分钟最后更新于 19 天前

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.