Skip to content

Move EntityCursor out of bevy_feathers to bevy_picking - #25294

Open
zaidzdz wants to merge 10 commits into
bevyengine:mainfrom
zaidzdz:main
Open

Move EntityCursor out of bevy_feathers to bevy_picking#25294
zaidzdz wants to merge 10 commits into
bevyengine:mainfrom
zaidzdz:main

Conversation

@zaidzdz

@zaidzdz zaidzdz commented Aug 4, 2026

Copy link
Copy Markdown

Objective

This PR addresses #25250.

As noted by @viridia,

The EntityCursor component has proven its usefulness, but right now it's only usable by feathers since that's where it lives. But the implementation is not at all feathers-specific, and could go in another crate.

Solution

Again, as noted by @viridia, this should probably be moved to bevy_picking for obvious reasons.

So, I moved the file cursor.rs in bevy_feathers to bevy_picking and updated anything that depended on it, which was mostly the components in bevy_feathers/src/controls and the toml files in bevy_feathers, bevy_picking, and bevy_internal.

Migration guide

Should this be included in the migration guide? I assume so.


Lastly, this is my first PR to Bevy, and I'm quite new, so any feedback on this PR, whether on the description, code, or anything else, would be helpful!

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide, as well as our policy regarding AI usage, and we look forward to reviewing your pull request shortly ✨

@IceSentry

Copy link
Copy Markdown
Contributor

I feel like this should be part of bevy_window not bevy_picking. Controlling the appearance of the cursor is done through the window api.

@IceSentry

Copy link
Copy Markdown
Contributor

Oh, but this would be a circular dependency ☹️

@alice-i-cecile alice-i-cecile added C-Usability A targeted quality-of-life change that makes Bevy easier to use M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide X-Uncontroversial This work is generally agreed upon S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Aug 4, 2026

@alice-i-cecile alice-i-cecile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a migration guide, then I'm happy to approve this :) Very much in favor!

@alice-i-cecile alice-i-cecile added S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged X-Contentious There are nontrivial implications that should be thought through and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward X-Uncontroversial This work is generally agreed upon labels Aug 4, 2026
@zaidzdz

zaidzdz commented Aug 4, 2026

Copy link
Copy Markdown
Author

@alice-i-cecile migration guide is added!

Comment thread crates/bevy_feathers/Cargo.toml Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this have to have a , features = [ “custom_cursor” ] or something now?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mhmm, I'm curious about this too. Blocking on an answer here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, fixed it in the latest commit.

@kfc35 kfc35 added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged labels Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Usability A targeted quality-of-life change that makes Bevy easier to use M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it X-Contentious There are nontrivial implications that should be thought through

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants