Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename UI camera_entity fields #17243

Merged
merged 3 commits into from
Jan 12, 2025

Conversation

ickshonpe
Copy link
Contributor

Objective

The camera_entity field on the extracted uinode structs holds the render world entity that has the extracted camera components corresponding to the target camera world entity. It should be renamed so that it's clear it isn't the target camera world entity itself.

Solution

Rename the camera_entity field on each of the extracted UI item structs to extracted_camera_entity.

…it queries the main world for the camera to get the viewport size for the responsive viewport coords resolution. It should be using the main world camera entity.
…racted_camera_entity` and updated the doc comment.
@ickshonpe ickshonpe added A-UI Graphical user interfaces, styles, layouts, and widgets D-Trivial Nice and easy! A great choice to get started with Bevy C-Code-Quality A section of code that is hard to understand or change A-Rendering Drawing game state to the screen S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jan 8, 2025
@alice-i-cecile alice-i-cecile 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-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jan 10, 2025
@alice-i-cecile
Copy link
Member

@ickshonpe ping me when merge conflicts are resolved :)

@ickshonpe
Copy link
Contributor Author

@ickshonpe ping me when merge conflicts are resolved :)

done

@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 12, 2025
Merged via the queue into bevyengine:main with commit 8ac1f8c Jan 12, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen A-UI Graphical user interfaces, styles, layouts, and widgets C-Code-Quality A section of code that is hard to understand or change D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants