文档

Unity Engine

Download Unity

Unity Engine

GetComponentData<T>(Entity)

Gets the value of a component for an entity.
阅读时间1 分钟最后更新于 1 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static T GetComponentData<T>(Entity entity) where T : unmanaged, IComponentData

Parameters

entity

The entity.

Returns

Type

Description

TThe component value.