diff --git a/ecs/src/world.rs b/ecs/src/world.rs index efd5172..3d0ec8f 100644 --- a/ecs/src/world.rs +++ b/ecs/src/world.rs @@ -211,6 +211,7 @@ impl World { entity: Entity, component: T, ) -> Result<()> { + #[cfg(debug_assertions)] println!("insert component {}", T::debug_name()); let change = ComponentChange::Added(TypeId::of::(), Box::new(component)); @@ -231,6 +232,7 @@ impl World { &mut self, entity: Entity, ) -> Result<()> { + #[cfg(debug_assertions)] println!("remove component {}", T::debug_name()); let change = ComponentChange::Removed(TypeId::of::());