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