Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Compatibility with bevy_egui. #40

Closed

Description

@Oglo12

I tried using this crate with bevy_egui, but it doesn't like it. The code is just incompatible. Won't even compile. It is because you require the standard Egui context.

Activity

  1. Barugon commented on Jul 24, 2024

    @Barugon
    Owner

    It works.

    use bevy::prelude::*;
    use bevy_egui::{EguiContexts, EguiPlugin};
    use egui_file::FileDialog;
    
    fn main() {
      let mut dialog = FileDialog::open_file(None);
      dialog.open();
    
      let ui_example_system = move |mut contexts: EguiContexts| {
        dialog.show(contexts.ctx_mut());
      };
    
      App::new()
        .add_plugins(DefaultPlugins)
        .add_plugins(EguiPlugin)
        .add_systems(Update, ui_example_system)
        .run();
    }
  2. Repository owner locked and limited conversation to collaborators on Jul 25, 2024
  3. converted this issue into a discussion #49 on Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions