Skip to content

No more way to toggle text visibility with bevy main #3422

Closed
@BorisBoutillier

Description

Bevy version

Current git main with the new renderer

Operating system & version

All Oses

What you did

In bevy 0.5 I was using the Visible component in a TextBundle to play with visibility of text in the UI of my Kataster game. ( typically to have some text ’blinking’)

What you expected to happen

While Visible has been updated to Visibility and is available for sprites, the Visibility component is not available for TextBundle ( even if added manually with a ComputedVisibility it does not work).
display attribute on Style impacts the layout so is not the solution here.

So as far as I have seen there no simple way to toggle visibility of a Text in the UI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorP-RegressionFunctionality that used to work but no longer does. Add a test for this!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions