Documentation

Unity Engine


Unity Engine


GetUnmanagedSharedComponentData

Obsolete. Use EntityManager.GetSharedComponent instead.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

GetUnmanagedSharedComponentData<T>(Entity)

Obsolete. Use EntityManager.GetSharedComponent instead.
Warning
Removed. Use GetSharedComponent\<T\>
public T GetUnmanagedSharedComponentData<T>(Entity entity) where T : unmanaged, ISharedComponentData

Parameters

entity

The target entity

Returns

Type

Description

TThe index of the target entity's value for the shared component of type
T
.

GetUnmanagedSharedComponentData<T>(int)

Obsolete. Use EntityManager.GetSharedComponent instead.
Warning
Removed. Use GetSharedComponent\<T\>
public T GetUnmanagedSharedComponentData<T>(int sharedComponentIndex) where T : unmanaged, ISharedComponentData

Parameters

sharedComponentIndex

The index of the shared component in the internal shared component list.

Returns

Type

Description

TA copy of the shared component.