Skip to main content

on_segment_press

Function on_segment_press 

Source
fn on_segment_press(
    e: On<'_, '_, PointerPress>,
    cmd: Commands<'_, '_>,
    q_segments: Query<'_, '_, Entity, With<TrackSegment>>,
)
Expand description

Removes segments on pointer press. Relies on the RemoveSegment command.