ドキュメント

Unity Engine

Download Unity

Unity Engine

GetComponentBoxed

Gets the component object of a given entity
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

GetComponentBoxed(Entity, ComponentType)

Gets the component object of a given entity
public object GetComponentBoxed(Entity entity, ComponentType type)

Parameters

entity

The entity

The component type to get the object of

Returns

Type

Description

ObjectThe component object

GetComponentBoxed(Entity, Type)

Gets the component object of a given entity based on the type
public object GetComponentBoxed(Entity entity, Type type)

Parameters

entity

The entity

type

The type to get the object of

Returns

Type

Description

ObjectThe component object