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

The asset used to highlight the picked object. For a 3D mesh, this would probably be [StandardMaterial].

Required Methods

Provided Methods

Implementors