diff --git a/src/ui/interaction.rs b/src/ui/interaction.rs index d9f6fc1b..aeac6eb9 100644 --- a/src/ui/interaction.rs +++ b/src/ui/interaction.rs @@ -7,7 +7,8 @@ pub(super) fn plugin(app: &mut App) { app.add_systems(Update, (apply_interaction_palette, trigger_interaction_sfx)); } -/// Palette for widget interactions. +/// Palette for widget interactions. Add this to an entity that supports [`Interaction`]s, such as a button, +/// to change its [`BackgroundColor`] based on the current interaction state. #[derive(Component, Debug, Reflect)] #[reflect(Component)] pub struct InteractionPalette {