Skip to main content

asset_value

Function asset_value 

Source
pub fn asset_value<I, A>(asset: I) -> HandleTemplate<A>
where I: Into<A>, A: Asset,
Expand description

This will create a new HandleTemplate for the given asset value. This makes it possible to define assets “inline” in templates / scenes that produce a Handle.

This supports Into to automatically convert values that can become A.