Skip to content

Wrong asset loader is used after extensionless assets change #11638

@rparrett

Description

@rparrett

Bevy version

main, after #10153

What you did

With the following fork/branch of bevy_common_assets:
https://github.com/rparrett/bevy_common_assets/tree/bevy13

cargo run --example multiple_formats --features=json,ron

What went wrong

The ron file is parsed as json and throws an error.

2024-01-31T22:52:54.621165Z ERROR bevy_asset::server: Failed to load asset 'trees.level.ron' with asset loader 'bevy_common_assets::json::JsonAssetLoader<multiple_formats::Level>': Could not parse the JSON: expected value at line 1 column 1

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 behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions