文档

Unity Engine

Download Unity

Unity Engine

SetComponentEnabled<T>(Entity, bool)

Enables or disables an enableable component of an entity.
阅读时间1 分钟最后更新于 1 天前

Definition

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

Parameters

entity

The entity.

value

True to enable the component, false to disable it.