Documentation

Unity Engine


Unity Engine


GetUnmanagedSharedComponentDataIndex<T>(Entity)

Obsolete. Use EntityManager.GetSharedComponentIndex instead.
Read time 1 minuteLast updated 3 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
Warning
Removed. Use GetSharedComponentIndex\<T\>
public int GetUnmanagedSharedComponentDataIndex<T>(Entity entity) where T : unmanaged, ISharedComponentData

Parameters

entity

The target entity

Returns

Type

Description

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