Bevy Interact 2D
Work in progress
Plugin library for the Bevy game engine to easily add mouse interactions to 2d games.
Can help you with:
- Hovering
- Clicking
- Dragging & Droppings
Using Interact2D
Add the interaction plugin, or use the InteractionDebugPlugin
instead when debugging.
.add_plugin
build
Spawn a camera with an interaction source with a number of interaction groups.
commands
.spawn_bundle
.insert
Spawn an interactable entity
commands
.spawn
.insert
Now you can create a system that uses the interaction state