[−][src]Function amethyst_ui::targeted
pub fn targeted<'a, I>(pos: (f32, f32), transforms: I) -> Option<Entity> where
I: Iterator<Item = (Entity, &'a UiTransform, Option<&'a Interactable>)> + 'a,
Checks if an interactable entity is at the position pos
and doesn't have anything on top blocking the check.
If you have a non-interactable entity over an interactable entity, it will consider the interactable one blocked, depending
on if pos
is over the non-interactable one or not.