Input Manager Scene Input Provider
Scene-level input provider using Unity's legacy Input Manager system. Handles camera controls, character movement and scene navigation.
This class is part of the NWH Common package and provides scene-wide input functionality (camera, GUI, vehicle switching) rather than vehicle-specific controls (steering, throttle, brakes).
Purpose
InputManagerSceneInputProvider handles:
- Camera rotation and panning (with optional mouse button modifiers)
- Camera zoom
- Camera/vehicle switching
- Character movement (FPS controls)
- GUI toggling
For vehicle-specific input (throttle, steering, brakes), use InputManagerVehicleInputProvider instead (see Input).
Setup
- Add
InputManagerSceneInputProvidercomponent to a GameObject in your scene - Configure required axes in Project Settings > Input Manager:
CameraRotationX- Horizontal camera rotation (e.g., Mouse X)CameraRotationY- Vertical camera rotation (e.g., Mouse Y)CameraPanningX- Horizontal camera panningCameraPanningY- Vertical camera panningCameraZoom- Camera zoom (e.g., Mouse ScrollWheel)FPSMovementX- Character horizontal movementFPSMovementY- Character forward/back movement
- Configure button mappings for:
ChangeCamera- Switch camera (default fallback: C key)ChangeVehicle- Switch vehicle (default fallback: V key)ToggleGUI- Toggle UI visibility (default fallback: Tab key)CameraRotationModifier- Mouse button for rotation (default: Mouse0/left-click)CameraPanningModifier- Mouse button for panning (default: Mouse1/right-click)
Properties
- requireCameraRotationModifier - If true, camera rotation requires holding the rotation modifier button (e.g., left mouse button)
- requireCameraPanningModifier - If true, camera panning requires holding the panning modifier button (e.g., right mouse button)
Complete Documentation
For complete documentation including architecture, custom providers, and advanced usage, see:
Related
- Input - Vehicle-specific input configuration
- Vehicle Input Handler - Vehicle input processing