Skip to content

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

QuerySystem.markEntityDirty() method

标记实体组件已修改(用于脏标记追踪)

Signature:

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

Parameters

Parameter

Type

Description

entity

Entity

修改的实体

componentTypes

ComponentType[]

修改的组件类型

Returns:

void

基于 MIT 许可证发布