pub fn vpeol_read_click_on_entity<Filter: QueryFilter>(
ui: ResMut<'_, YoleckUi>,
cameras_query: Query<'_, '_, &VpeolCameraState>,
yoleck_managed_query: Query<'_, '_, &YoleckManaged>,
filter_query: Query<'_, '_, (), Filter>,
buttons: Res<'_, ButtonInput<MouseButton>>,
candidate: Local<'_, Option<Entity>>,
) -> Option<Entity>
Expand description
Detects an entity that’s being clicked on. Meant to be used with Yoleck’s exclusive edit systems and with Bevy’s system piping.
Note that this only returns Some
when the user clicks on an entity - it does not finish the
exclusive system. The other systems that this gets piped into should decide whether or not it
should be finished.