Expand description
§File Asset Plugin for Bevy
This plugin registers an asset source under the "file"
scheme which loads assets
directly from arbitrary paths (both relative to the working directory and absolute).
If the file does not exist at the given path, the reader returns a NotFound
error,
so that Bevy’s asset server can fall back to other methods.
§Example Usage
use bevy::prelude::*;
use bevy_file_asset::FileAssetPlugin;
let mut app = App::new();
// Register the file asset source before adding the DefaultPlugins.
app.add_plugins((FileAssetPlugin::default(), DefaultPlugins));
Structs§
- File
Asset Plugin - Plugin that registers the file asset source.
- File
Asset Reader - A reader that loads files directly from arbitrary paths.