Skip to content

Can't change title at runtime. #2879

Closed
Closed
@Gingeh

Description

@Gingeh

Bevy version

rev = "d158e0893ea88b6acf523a4264f076d6e0b540c6"

Operating system & version

Linux Mint 20.1 Ulyssa

What you did

I tried to change the window title:

fn update_title(score: Res<Score>, mut window: ResMut<WindowDescriptor>) {
    window.title = format!("Snake: {}", score.0);
}

What you expected to happen

I expected the title to change.

What actually happened

The title stayed the same.

Additional information

I am using a WindowDescriptor to set the title at startup.
Window::set_title works, but is more verbose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-DocsAn addition or correction to our documentationC-UsabilityA targeted quality-of-life change that makes Bevy easier to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions