Documentation

Unity Engine

Download Unity

Unity Engine

IsComponentEnabled<T>(Entity)

Checks whether an enableable component of an entity is enabled.
Read time 1 minuteLast updated a day ago

Definition

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

Parameters

entity

The entity.

Returns

Type

Description

boolTrue if the component is enabled.