pub fn metadata_asset(extension: &str) -> AssetKind
Expand description
Helper function to return type data for a metadata asset.
§Example
This is meant to be used in a type_data
attribute when deriving HasSchema
.
#[derive(HasSchema, Default, Clone)]
#[type_data(metadata_asset("atlas"))]
#[repr(C)]
struct AtlasMeta {
pub tile_size: Vec2,
pub grid_size: UVec2,
}