Trait bevy_mod_picking::highlight::Highlightable
source · [−]pub trait Highlightable: Default {
type HighlightAsset: Asset;
fn highlight_defaults(
materials: Mut<'_, Assets<Self::HighlightAsset>>
) -> DefaultHighlighting<Self>;
fn materials(world: &mut World) -> Mut<'_, Assets<Self::HighlightAsset>> { ... }
}
Expand description
This trait makes it possible for highlighting to be generic over any type of asset.
Required Associated Types
type HighlightAsset: Asset
type HighlightAsset: Asset
The asset used to highlight the picked object. For a 3D mesh, this would probably be [StandardMaterial
].