GetDynamicComponentDataArrayReinterpret<T>(ref DynamicComponentTypeHandle, int)
Construct a NativeArray view of a chunk's component data.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
GetDynamicComponentDataArrayReinterpret<T>(DynamicComponentTypeHandle, int)
public readonly NativeArray<T> GetDynamicComponentDataArrayReinterpret<T>(ref DynamicComponentTypeHandle typeHandle, int expectedTypeSize) where T : struct
Parameters
Type handle for the target component type
The expected size (in bytes) of the target component type. It is an error to pass a size that does not match the target type's actual size.
Returns
Type | Description |
|---|---|
| NativeArray<T> | A NativeArray which aliases the chunk's component value array for type |