Skip to content

Warn that loading asset using a PathBuf does not handle labels #19242

Open
@hukasu

Description

@hukasu

What problem does this solve or what need does it fill?

Currently trying to load an asset passing a PathBuf with a label tries to load an asset with the label as part of the extension.

What solution would you like?

Add a warning that PathBuf does not support loading labeled assets

Additional context

doing asset_server.load(PathBuf::from("a.test#Test")) gives a Path not found error because the path that the AssetReader receives is a.test#Test instead of a.test

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AssetsLoad files from disk to use for things like images, models, and soundsC-BugAn unexpected or incorrect behaviorC-UsabilityA targeted quality-of-life change that makes Bevy easier to useS-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions