pub trait ResolveMaterial {
// Required method
fn resolve(self, assets: &AssetServer) -> MaterialHandle;
}Expand description
Trait for types that can be resolved into a MaterialHandle.
Implemented for:
MaterialHandle— returned as-is (zero cost).Material— auto-registered inAssetServer.UnlitMaterial,PhongMaterial,PhysicalMaterial— converted toMaterialand auto-registered.