Skip to content
Discussion options

You must be logged in to vote

You cannot directly access to components using Commands, but in this case you don't have to necessarily use Commands. On has other constructors, in particular there is target_component_mut if you only want to mutate a component on the target (like in your On::<Pointer<Out>> example), and run if you want to run a full system (which you might want to do in your On::<Pointer<Over>> example, also note that in this case you'll need to manually get the target data using a Listener<E> system parameter).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wbpaley
Comment options

Answer selected by wbpaley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants