Input System Scene Input Provider
Unity Input System implementation for scene and camera controls.
Overview
InputSystemSceneInputProvider handles camera controls and scene navigation using Unity's new Input System. It extends SceneInputProviderBase and uses SceneInputActions for input mapping.
Properties
- requireCameraRotationModifier: If true, requires holding a modifier button to rotate the camera
- requireCameraPanningModifier: If true, requires holding a modifier button to pan the camera
Functionality
Provides input for:
- Camera Rotation: Mouse/stick input for rotating the camera
- Camera Panning: Mouse/stick input for panning the camera
- Camera Zoom: Scroll wheel or zoom axis
- Change Camera: Switch between available cameras
- Change Vehicle: Switch between vehicles in the scene
- Character Movement: First-person/character controls
- Toggle GUI: Show/hide the user interface
Configuration
Input mappings are configured in the SceneInputActions asset. Double-click the asset in the project to open the Input Actions editor.
Default controls typically use:
- Right mouse button + mouse movement for camera rotation
- Middle mouse button + mouse movement for camera panning
- Mouse scroll wheel for zoom
See Also
- Input Setup - General input system configuration
SceneInputProviderBase(NWH.Common.Input) - Base class