Skip to content

Smart method to get Entity when hovering it with mouse for 2d  #3805

@pyweeker

Description

@pyweeker

Hello,
is it possible to have something equivalent than bevy_mod_picking https://github.com/aevyrie/bevy_mod_picking
which works for 3d , but here for 2d ?
i tried to get inspiration from buttons , but it is not clean to put this kind of component everywhere. I dont know how to writte this kind of method.
I'd like to hover sprites , click on it to select it , or click and drag to draw a rectangle which select a vector or entities.
So i need to get entity / entities when the mouse hovers sprite(s). very usefull++

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PickingPointing at and selecting objects of all sortsA-UtilsUtility functions and typesC-FeatureA new feature, making something new possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions