Cargo Features
[dependencies]
bevy_egui = { version = "0.32.0", default-features = false, features = ["immutable_ctx", "manage_clipboard", "open_url", "default_fonts", "render", "serde", "log_input_events"] }
- default = default_fonts, manage_clipboard, open_url, render
-
These default features are set whenever
bevy_egui
is added without
somewhere in the dependency tree.default-features = false - immutable_ctx
- manage_clipboard default = arboard, thread_local
-
Affects
bevy_egui::EguiInputSystemSettings.run_write_web_clipboard_events_system
,bevy_egui::EguiClipboard
… - open_url default = webbrowser
-
Affects
bevy_egui::EguiContextSettings.default_open_url_target
… - default_fonts default
-
Enables default_fonts of egui
egui:
If set, egui will use
include_bytes!
to bundle some fonts. If you plan on specifying your own fonts you may disable this feature. - render default = bevy_asset, bevy_image, bevy_picking, bevy_render, bytemuck, encase, wgpu-types
-
egui:
bytemuck
enables you to castepaint::Vertex
,emath::Vec2
etc to&[u8]
.Affects
bevy_egui::egui_node
,bevy_egui::render_systems
,bevy_egui::EguiContextSettings.capture_pointer_input
,bevy_egui::EguiRenderToImage
,bevy_egui::EguiUserTextures
,bevy_egui::EguiManagedTextures
,bevy_egui::EguiManagedTexture
,bevy_egui::PICKING_ORDER
,bevy_egui::capture_pointer_input_system
,bevy_egui::update_egui_textures_system
,bevy_egui::free_egui_textures_system
… - serde
-
egui:
Allow serialization using
serde
. - log_input_events
-
The enabled logs will print with the info log level, to make it less cumbersome to debug in browsers.
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- webbrowser open_url
-
Enables webbrowser
open_url
feature - bytemuck render
-
Enables bytemuck
render
feature - bevy_asset render
- bevy_image render
- bevy_picking render
- bevy_render render
- encase render
- wgpu-types render
-
Enables wgpu-types ^23.0
- arboard not wasm32 android manage_clipboard
- thread_local not wasm32 android manage_clipboard