This crate is very handy for assets that exist in Bevy. Is it possible to load serializable structs as assets from files?
using
.add_plugin(JsonAssetPlugin::<CustomAsset>::new(&[".asset.json"])) .add_collection_to_loading_state::<_, CustomAssetCollection>(GameState::Loading)
just freezes the app forever. I guess this would require writting bevy_common_assets + serde support feature(s)...
P.S. the warning that happens is noAssetLoaderfound for the following extensions: levels.json, json. I guess for now I need to create levels.json AssetLoader by hand instead.
This crate is very handy for assets that exist in Bevy. Is it possible to load serializable structs as assets from files? using
.add_plugin(JsonAssetPlugin::<CustomAsset>::new(&[".asset.json"])) .add_collection_to_loading_state::<_, CustomAssetCollection>(GameState::Loading)
just freezes the app forever. I guess this would require writtingbevy_common_assets
+ serde support feature(s)...P.S. the warning that happens is
no
AssetLoaderfound for the following extensions: levels.json, json
. I guess for now I need to create levels.json AssetLoader by hand instead.