Adds the root property to Assets service, that defaults to current working directory
Adds method root() to Assets to get value of the property
Adds method set_root() to Assets to set value of the property
Adds method import_from to Assets to keep possibility to import file from anywhere
For iOS applications some startup system should be considered, for example:
fn startup(mut assets: Mut<Assets>) {
// before loading any asset from FS
assets.set_root(
std::env::current_exe()
.expect("Executable path to be available")
.parent()
.unwrap()
);
}
root
property toAssets
service, that defaults to current working directoryroot()
toAssets
to get value of the propertyset_root()
toAssets
to set value of the propertyimport_from
toAssets
to keep possibility to import file from anywhereFor iOS applications some
startup
system should be considered, for example: