-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI layout tree debug print #8521
UI layout tree debug print #8521
Conversation
…e from a given `UiSurface`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to avoid println!
and use one of the log macro as they are supported on all platforms
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine. Seems like ideally Taffy's function would be made more generic. But probably easier to just do it like this for now.
Yeah, this is just a starting point, as our debugging options are so poor atm. Maybe a version that uses a |
Objective
Copy the
debug::print_tree
function from Taffy except display entity ids instead of Taffy's node ids and indicate which ui nodes have a measure func.