Macro include_asset_tree

Source
include_asset_tree!() { /* proc-macro */ }
Expand description

Embed the tree of the assets sub-directories in your crate. useful if you want to browse some assets

  • body - the path of the assets sub-directory.

§Example

use stereokit_macros::include_asset_tree;
const ASSET_DIR: &[&str] = include_asset_tree!("assets");

assert_eq!(ASSET_DIR[0], "assets");
assert_eq!(ASSET_DIR[1], "assets/textures");