pub fn new(assets_dir: &Path) -> AssetPacker {
        fs::create_dir_all(assets_dir).expect("failed to create assets directory");
        AssetPacker {
            assets_dir: assets_dir.to_path_buf(),
            sprites: None,
            check_rerun: false,
            mp3_fallback: false,
            music: None,
            sounds: None,
            js: false,
        }
    }
/// Constructs a new `AssetPacker` where packed asset files will be written to `assets_dir`.
///
/// Except when building to WASM,
/// the `assets_dir` must be a directory named "assets" relative to
/// the current directory used when the Gate application is run.
/// This is usually in the base directory of the Rust project.
Constructs a new `AssetPacker` where packed asset files will be written to `assets_dir`.
Except when building to WASM,
the `assets_dir` must be a directory named "assets" relative to
the current directory used when the Gate application is run.
This is usually in the base directory of the Rust project.
Constructs a new ` AssetPacker ` where packed asset files will be written to ` assets_dir ` . Except when building to WASM the ` assets_dir ` must be a directory named " assets " relative to the current directory used when the Gate application is run . This is usually in the base directory of the Rust project .
pub fn new(assets_dir: &Path) -> AssetPacker {
        fs::create_dir_all(assets_dir).expect("failed to create assets directory");
        AssetPacker {
            assets_dir: assets_dir.to_path_buf(),
            sprites: None,
            check_rerun: false,
            mp3_fallback: false,
            music: None,
            sounds: None,
            js: false,
        }
    }
pub fn new ( assets_dir : & Path ) -> AssetPacker { fs :: create_dir_all ( assets_dir ) . expect ( " " ) ; AssetPacker { assets_dir : assets_dir . to_path_buf ( ) , sprites : None , check_rerun : false , mp3_fallback : false , music : None , sounds : None , js : false , } }
Constructs a new `AssetPacker` where packed asset files will be written to `assets_dir`.
Constructs a new ` AssetPacker ` where packed asset files will be written to ` assets_dir ` .
assets_dir
&Path
assets_dir
&Path