Documentation

Unity Engine


Unity Engine


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.

entityManager

An EntityManager instance.

Returns

Type

Description

ObjectThe shared component value.

Remarks

You cannot call this function inside a job.