Skip to content

Conversation

mockersf
Copy link
Member

Objective

Solution

  • Make a new EasyScreenshotPlugin in the dev tools

Testing

  • Add to any example
        .add_plugins(bevy::dev_tools::EasyScreenshotPlugin {
            trigger: KeyCode::KeyP,
            ..default()
        })
  • Run the example with the feature bevy_dev_tools enabled
  • press the P key
  • screenshot! 🎉

Copy link
Contributor

@ChristopherBiscardi ChristopherBiscardi left a comment

Choose a reason for hiding this comment

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

never thought I'd see an IIFE in Rust.

Copied the plugin into a random project and configured it. Works as expected.

Image

@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 C-Feature A new feature, making something new possible A-Meta About the project itself A-Dev-Tools Tools used to debug Bevy applications. labels Sep 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Dev-Tools Tools used to debug Bevy applications. A-Meta About the project itself C-Feature A new feature, making something new possible 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.

4 participants