GetSharedComponentDataBoxed(ref DynamicSharedComponentTypeHandle, EntityManager)
Gets the current value of a shared component.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
GetSharedComponentDataBoxed(DynamicSharedComponentTypeHandle, EntityManager)
public readonly object GetSharedComponentDataBoxed(ref DynamicSharedComponentTypeHandle typeHandle, EntityManager entityManager)
Parameters
An object containing type and job safety information. To create this object, call ComponentSystemBase.GetDynamicSharedComponentTypeHandle.
An EntityManager instance.
Returns
Type | Description |
|---|---|
| Object | The shared component value. |
Remarks
You cannot call this function inside a job.