bevy_simple_prefs

Crates.iobevy_simple_prefs
lib.rsbevy_simple_prefs
version0.3.0
sourcesrc
created_at2024-07-04 18:22:59.761409
updated_at2024-07-26 04:34:07.225678
descriptionA small Bevy plugin for persisting multiple Resources to a single file
homepagehttps://github.com/rparrett/bevy_simple_prefs
repositoryhttps://github.com/rparrett/bevy_simple_prefs
max_upload_size
id1291986
size128,710
Rob Parrett (rparrett)

documentation

https://docs.rs/bevy_simple_prefs

README

bevy_simple_prefs

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_prefs bevy
0.1-0.3 0.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-persistent or bevy-settings. There are also a few other options in the persistence section of Bevy Assets.

Commit count: 38

cargo fmt