pub(crate) fn camera_control_system(
state: Local<'_, UICameraState>,
mouse_input: Res<'_, ButtonInput<MouseButton>>,
camera: Single<'_, (&mut Transform, &mut Projection), With<UICamera>>,
mouse_motion: Res<'_, AccumulatedMouseMotion>,
mouse_scroll: Res<'_, AccumulatedMouseScroll>,
)
Expand description
The system that controls the UI camera.
It handles moving, zooming and other functionality in response to user input.