Skip to content

Hot Reloading Drops Additional Component Inserts #7

@TurtIeSocks

Description

@TurtIeSocks

Is it possible to hot reload html templates and persist components that were added in Bevy?

e.g.:

    commands.spawn((
        Name::new("Settings Menu"),
        HtmlNode(server.load("ui/menus/settings/index.html")),
        TargetCamera(*ui_camera),
        Settings,
    ));

When ui/menus/settings/index.html is updated, the Name, TargetCamera, and Settings components are lost.

Thanks for the cool library :) really looking forward to becoming familiar with it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions