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

Insert Gizmos config instead of Init #11580

Merged
merged 6 commits into from
Jan 28, 2024

Conversation

pablo-lua
Copy link
Contributor

Objective

Solution

  • Add new methods to the Ext Trait

Changelog

Added

  • Added new methods to the trait AppGizmoBuilder

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
@alice-i-cecile alice-i-cecile added C-Usability A targeted quality-of-life change that makes Bevy easier to use A-Gizmos Visual editor and debug gizmos labels Jan 28, 2024
Copy link
Contributor

@Jondolf Jondolf left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

Having both the group and config in the same method does have the downside that if a plugin wanted to configure just one of them (like my PhysicsDebugPlugin that sets the default GizmoConfig), it'd overwrite the other one too, but this is probably acceptable and circumventable.

Having two separate methods with similar names like my original proposal would perhaps be more confusing, so I like keeping the API minimal like this.

@Jondolf Jondolf added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Jan 28, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 28, 2024
Merged via the queue into bevyengine:main with commit 397d111 Jan 28, 2024
23 checks passed
@pablo-lua pablo-lua deleted the init_gizmos_config branch January 28, 2024 16:11
tjamaan pushed a commit to tjamaan/bevy that referenced this pull request Feb 6, 2024
# Objective

- Fixes bevyengine#11569 

## Solution

- Add new methods to the Ext Trait 

---

## Changelog

### Added
- Added new methods to the trait `AppGizmoBuilder`

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Gizmos Visual editor and debug gizmos C-Usability A targeted quality-of-life change that makes Bevy easier to use S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Insert gizmo configuration
3 participants