文档

Unity Engine

Download Unity

Unity Engine

GetSharedComponentDataBoxed(int, TypeIndex)

Retrieves a shared component value as a managed boxed object.
阅读时间1 分钟最后更新于 20 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
[ExcludeFromBurstCompatTesting("Accesses managed component store")]public object GetSharedComponentDataBoxed(int sharedComponentIndex, TypeIndex typeIndex)

Parameters

sharedComponentIndex

The shared component index

typeIndex

The type index

Returns

Type

Description

ObjectThe shared component value, boxed into an object.

Remarks

This API is for debugging or performance-insensitive purposes.
Additional Resources: EntityManager.GetSharedComponent