-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Cannot use bevy::ui::Size #5338
Copy link
Copy link
Closed
Labels
A-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior
Description
Bevy version
main branch (25d222b73e57f27cf7f346015c7f554dafab131a)
What you did
Take any example code and add use bevy::ui::Size directive.
Run cargo check --example the_example
What went wrong
error[E0432]: unresolved import `bevy::ui::Size`
--> examples/2d/rotation.rs:3:5
|
3 | use bevy::ui::Size;
| ^^^^^^^^^^^^^^ no `Size` in `ui`
Additional information
Of course a solution is to use the prelude, but according to the migration guide provided in this PR, we should be able to use bevy::ui::Size as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior