Skip to content

Home > @esengine/ecs-framework-monorepo > EntityManager > markEntityDirty

EntityManager.markEntityDirty() method

标记实体组件已修改

Signature:

typescript
markEntityDirty(entity: Entity, componentTypes: ComponentType[]): void;

Parameters

Parameter

Type

Description

entity

Entity

修改的实体

componentTypes

ComponentType[]

修改的组件类型

Returns:

void

基于 MIT 许可证发布