GetSharedComponentTypeHandle<T>()
Gets the run-time type information required to access a shared component data in a chunk.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public static SharedComponentTypeHandle<T> GetSharedComponentTypeHandle<T>() where T : unmanaged, ISharedComponentData
Returns
Type | Description |
|---|---|
| SharedComponentTypeHandle<T> | An object representing the type information required to safely access shared component data stored in a chunk. |
Remarks
Not working in Entities.ForEach, IJobEntity, and Utility methods