文档

Unity Engine

Download Unity

Unity Engine

GetSharedComponentDataIndex<T>(Entity)

Retrieves the index of the unmanaged shared component data value for an entity.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
警告
Removed. Use GetSharedComponentIndex\<T\> instead. (RemovedAfter Entities 1.0)
public int GetSharedComponentDataIndex<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
.