{"repo":"NiklasEi/bevy_common_assets","free":true,"listed":false,"github":"https://github.com/NiklasEi/bevy_common_assets","clone":"git clone https://github.com/NiklasEi/bevy_common_assets.git","description":"Collection of generic asset loaders for common file formats","language":"Rust","stars":288,"topics":["assets","bevy","bevy-plugin","game-development","rust","hacktoberfest"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"Bevy common assets Collection of [Bevy][bevy] plugins offering generic asset loaders and writers for common file formats. Supported formats: format feature example :--------- :--------- :-------------------------------------- json json json.rs msgpack msgpack msgpack.rs postcard postcard postcard.rs ron ron ron.rs toml toml toml.rs xml xml xml.rs yaml yaml yaml.rs csv csv csv.rs cbor cbor cbor.rs Usage Enable the feature(s) for the format(s) that you want to use. Define the types that you would like to load from files and derive serde::Deserialize , bevy::reflect::TypePath , and bevy::asset::Asset for them. With the types ready, you can start adding asset plugins. Every plugin gets the asset type that it is supposed to load as a generic parameter. You can also configure custom file endings for each plugin: The example above will load Level structs from json files ending on .level.json or .custom.json , from ron files ending on .level.ron and so on... See the examples for working Bevy apps using the different formats. Asset savers / using the loaders in .meta files The more involved example asset savers demonstrates how you can convert a json asset into a processed postcard asset using the JsonAssetLoader and PostcardAssetSaver . Compatible Bevy versions The main branch is compatible with the latest Bevy release. Compatibility of bevy common assets versions: bevy common assets bevy :------------------- :----- 0.15 0.18 0.14 0.17 0.13 0.16 0.12 0.15 0.11 0.14 0.10 0.13 0.8 - 0.","default_branch":null,"files":null,"tree":[],"storefront":"/r/NiklasEi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/NiklasEi/bevy_common_assets/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}