Skip to content

print_ui_layout_tree is exported, but not usable #17909

@rparrett

Description

@rparrett

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.

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

No one assigned

    Labels

    A-Dev-ToolsTools used to debug Bevy applications.A-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions