Home > @esengine/ecs-framework-monorepo > EntityManager > markEntityDirty
EntityManager.markEntityDirty() method
标记实体组件已修改
Signature:
typescript
markEntityDirty(entity: Entity, componentTypes: ComponentType[]): void;
Parameters
Parameter | Type | Description |
---|---|---|
entity | 修改的实体 | |
componentTypes | 修改的组件类型 |
Returns:
void