-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
A-Dev-ToolsTools used to debug Bevy applications.Tools used to debug Bevy applications.A-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!
Description
Bevy version
0.15, main
What you did
Search for "debug" in docs, and find this tempting function: https://docs.rs/bevy/latest/bevy/ui/debug/index.html and try to use it.
What went wrong
It's impossible to use outside of the engine, because UiSurface
is not exported.
bevy/crates/bevy_ui/src/layout/mod.rs
Lines 27 to 28 in 82f6f70
pub mod debug; | |
pub(crate) mod ui_surface; |
Additional information
It's not clear to me if
- This is intended to be user-facing and
UiSurface
should be exported print_ui_layout_tree
should not be exported
Courtesy of #help.
Metadata
Metadata
Assignees
Labels
A-Dev-ToolsTools used to debug Bevy applications.Tools used to debug Bevy applications.A-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!