Namespace NWH.VehiclePhysics2.VehicleGUI
Classes
AnalogGauge
Analog gauge that rotates a needle GameObject to display a value, similar to real-world speedometers and tachometers. Requires a child GameObject named "Needle" to function properly.
DashGUIController
Central controller for vehicle dashboard UI elements. Manages and updates gauges and indicator lights by reading data from the VehicleController and applying it to UI components. Automatically enables/disables the canvas when the vehicle is enabled/disabled.
DashLight
Dashboard warning/indicator light that smoothly transitions between on and off states. Provides hold time and fade effects to prevent flickering and simulate physical bulb behavior. Works with Unity UI Image components.
DigitalGauge
Text-based digital gauge for displaying numerical or string values with optional progress bar visualization. Supports smoothing for numerical displays and flexible formatting. Requires child GameObjects named "Readout" (Text) and optionally "Line" (Image) for the progress bar.
SteeringWheel
Interactive touch-based steering wheel UI control for mobile input. Tracks touch/mouse drag input and returns steering values in range [-1, 1]. Automatically returns to center when released. Based on code by yasirkula from Unity Forums.
Enums
DashGUIController.DataSource
Determines where the dashboard gets its vehicle data from.
DigitalGauge.GaugeType
Determines whether the gauge displays numerical or textual data.