Documentation

Unity Engine

Unity Engine

Reinterpret<U>()

Returns a dynamic buffer of a different type, pointing to the same buffer memory.
Read time 1 minuteLast updated 4 days ago

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.