Macro bevy_asset::load_internal_asset
source · macro_rules! load_internal_asset { ($app: ident, $handle: ident, $path_str: expr, $loader: expr $(, $param:expr)*) => { ... }; }
Expand description
Loads an internal asset from a project source file. the file and its path are passed to the loader function, together with any additional parameters. the resulting asset is stored in the app’s asset server.
Internal assets (e.g. shaders) are bundled directly into the app and can’t be hot reloaded
using the conventional API. See DebugAssetServerPlugin
.