You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This already exists in the form of events and event listeners. You could create your own special purpose component for this purpose if you want some other behavior.
I'm not sure if we want to add components for every type of event. This would also need to be a Vec, as a pointer can be dragging multiple entities at a time.
A
PointerDrag
component would be convenient for checking if a certain pointer is dragging something when you're dealing with complex logic.Maybe it can look something like this:
It will contain
Some(Entity)
when the pointer is currently dragging an entity.The text was updated successfully, but these errors were encountered: