diff --git a/crates/bevy_ecs/src/component.rs b/crates/bevy_ecs/src/component.rs index 2e629aa5a2..03dfae047e 100644 --- a/crates/bevy_ecs/src/component.rs +++ b/crates/bevy_ecs/src/component.rs @@ -906,8 +906,12 @@ impl<'w> ComponentInitializer<'w> { /// This is used to power change detection. /// /// *Note* that a system that hasn't been run yet has a `Tick` of 0. -#[derive(Copy, Clone, Default, Debug, Eq, PartialEq)] -#[cfg_attr(feature = "bevy_reflect", derive(Reflect), reflect(Debug, PartialEq))] +#[derive(Copy, Clone, Default, Debug, Eq, Hash, PartialEq)] +#[cfg_attr( + feature = "bevy_reflect", + derive(Reflect), + reflect(Debug, Hash, PartialEq) +)] pub struct Tick { tick: u32, }