Skip to content

Cannot use bevy::ui::Size #5338

Closed
Closed
@OragonEfreet

Description

@OragonEfreet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions