ドキュメント

Unity Engine

Download Unity

Unity Engine

IsComponentEnabled

Checks whether an enableable component of an entity is enabled.
読み終わるまでの所要時間 1 分最終更新 2日前

Definition

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

IsComponentEnabled<T>(Entity)

Checks whether an enableable component of an entity is enabled.
public static bool IsComponentEnabled<T>(Entity entity) where T : unmanaged, IEnableableComponent

Parameters

entity

The entity.

Returns

Type

Description

boolTrue if the component is enabled.

IsComponentEnabled(Entity, ComponentType)

Checks whether an enableable component of an entity is enabled.
public static bool IsComponentEnabled(Entity entity, ComponentType type)

Parameters

entity

The entity.

A component type that implements IEnableableComponent.

Returns

Type

Description

boolTrue if the component is enabled.