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