Documentation

Unity Engine

Unity Engine

GetComponentBoxed

Gets the component object of a given entity
Read time 1 minuteLast updated 6 days ago

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