Cargo Features
[dependencies]
bevy_egui = { version = "0.31.1", 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::web_clipboard
,bevy_egui::EguiClipboard
,systems::InputResources.egui_clipboard
… - open_url default = webbrowser
-
Affects
bevy_egui::EguiSettings.default_open_url_target
… - default_fonts default
-
Enables default_fonts of egui ^0.29
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_render, bytemuck, encase, wgpu-types
-
Enables bytemuck of egui ^0.29
egui:
bytemuck
enables you to castepaint::Vertex
,emath::Vec2
etc to&[u8]
.Affects
bevy_egui::egui_node
,bevy_egui::egui_render_to_texture_node
,bevy_egui::render_systems
,bevy_egui::EguiRenderToTextureHandle
,bevy_egui::EguiUserTextures
,bevy_egui::EguiContextQuery.render_to_texture
,bevy_egui::EguiManagedTextures
,bevy_egui::EguiManagedTexture
,bevy_egui::setup_render_to_texture_handles_system
,bevy_egui::update_egui_textures_system
… - serde
-
Enables serde of egui ^0.29
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_render render
- encase render
- wgpu-types render
- arboard not wasm32 android manage_clipboard
- thread_local not wasm32 android manage_clipboard