Crate bevy_file_asset

Source
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§

FileAssetPlugin
Plugin that registers the file asset source.
FileAssetReader
A reader that loads files directly from arbitrary paths.