๐Ÿ“ฆ rparrett / bevy_simple_prefs

A small Bevy plugin for persisting multiple Resources to a single file

โ˜… 9 stars โ‘‚ 1 forks ๐Ÿ‘ 9 watching โš–๏ธ Other
bevygame-developmentrust
๐Ÿ“ฅ Clone https://github.com/rparrett/bevy_simple_prefs.git
HTTPS git clone https://github.com/rparrett/bevy_simple_prefs.git
SSH git clone git@github.com:rparrett/bevy_simple_prefs.git
CLI gh repo clone rparrett/bevy_simple_prefs
Rob Parrett Rob Parrett Prepare for 0.8 release (#30) 339d93f 8 days ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ bevy_simple_prefs
๐Ÿ“„ .gitignore
๐Ÿ“„ Cargo.toml
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ README.md

bevysimpleprefs

crates.io docs Following released Bevy versions

An unambitious Bevy plugin for persisting multiple Bevy Resources into a single preferences file, suitable for small projects like jam games.

  • Persists to a single ron file
  • Does IO in Bevy's async task pool
  • WASM compatible

Usage

  • Derive Prefs on a struct with members that are Resources you want to be saved
  • Simply modify your Resources to initiate a save
  • Write code that reacts to those Resources changing, if you want
See examples/prefs.rs

Compatibility

bevy_simple_prefsbevy
0.80.18
0.70.17
0.5-0.60.16
0.40.15
0.1-0.30.14

Contributing

Please feel free to open a PR, but keep in mind this project's goals. This is meant to be a very lightweight crate. There should be zero additional dependencies on other Bevy ecosystem crates.

Please keep PRs small and scoped to a single feature or fix.

Alternatives

If you need more features, check out bevy-settings. There are also a few other options in the persistence section of Bevy Assets.