GetSharedComponentDataBoxed(ref DynamicSharedComponentTypeHandle, EntityManager)
Gets the current value of a shared component.
阅读时间1 分钟最后更新于 19 天前
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.