@@ -33,6 +33,11 @@ use bevy_reflect::{ReflectDeserialize, ReflectSerialize};
3333///
3434/// Note that you can also control the visibility of a node using the [`Display`](crate::ui_node::Display) property,
3535/// which fully collapses it during layout calculations.
36+ ///
37+ /// # See also
38+ ///
39+ /// - [`ButtonBundle`](crate::node_bundles::ButtonBundle) which includes this component
40+ /// - [`RelativeCursorPosition`] to obtain the position of the cursor relative to current node
3641#[ derive( Component , Copy , Clone , Eq , PartialEq , Debug , Reflect ) ]
3742#[ reflect( Component , Default , PartialEq ) ]
3843#[ cfg_attr(
@@ -63,9 +68,10 @@ impl Default for Interaction {
6368
6469/// A component storing the position of the mouse relative to the node, (0., 0.) being the top-left corner and (1., 1.) being the bottom-right
6570/// If the mouse is not over the node, the value will go beyond the range of (0., 0.) to (1., 1.)
66-
6771///
68- /// It can be used alongside interaction to get the position of the press.
72+ /// It can be used alongside [`Interaction`] to get the position of the press.
73+ ///
74+ /// The component is updated when it is in the same entity with [`Node`].
6975#[ derive( Component , Copy , Clone , Default , PartialEq , Debug , Reflect ) ]
7076#[ reflect( Component , Default , PartialEq ) ]
7177#[ cfg_attr(
0 commit comments