NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class 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.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    DashGUIController
    Namespace: NWH.VehiclePhysics2.VehicleGUI
    Assembly: NWH.VehiclePhysics2.dll
    Syntax
    [RequireComponent(typeof(Canvas))]
    public class DashGUIController : MonoBehaviour

    Fields

    absDashLight

    ABS indicator light. Illuminates when the ABS system is actively preventing wheel lock-up.

    Declaration
    [FormerlySerializedAs("ABS")]
    public DashLight absDashLight
    Field Value
    Type Description
    DashLight

    analogRpmGauge

    Analog RPM gauge (tachometer) displaying engine revolutions per minute with a rotating needle.

    Declaration
    public AnalogGauge analogRpmGauge
    Field Value
    Type Description
    AnalogGauge

    analogSpeedGauge

    Analog speed gauge (speedometer) displaying vehicle speed with a rotating needle.

    Declaration
    public AnalogGauge analogSpeedGauge
    Field Value
    Type Description
    AnalogGauge

    checkEngineDashLight

    Check engine light. Illuminates when engine damage exceeds 99.99%.

    Declaration
    [FormerlySerializedAs("checkEngine")]
    public DashLight checkEngineDashLight
    Field Value
    Type Description
    DashLight

    dataSource

    Determines where the dashboard reads vehicle data from.

    Declaration
    public DashGUIController.DataSource dataSource
    Field Value
    Type Description
    DashGUIController.DataSource

    digitalGearGauge

    Digital gear indicator displaying the current gear (R, N, 1, 2, 3, etc.).

    Declaration
    public DigitalGauge digitalGearGauge
    Field Value
    Type Description
    DigitalGauge

    digitalRpmGauge

    Digital RPM display showing engine revolutions per minute as a numeric value.

    Declaration
    public DigitalGauge digitalRpmGauge
    Field Value
    Type Description
    DigitalGauge

    digitalSpeedGauge

    Digital speed display showing vehicle speed as a numeric value (converted to km/h).

    Declaration
    public DigitalGauge digitalSpeedGauge
    Field Value
    Type Description
    DigitalGauge

    highBeamDashLight

    High beam indicator light. Illuminates when high beam headlights are active.

    Declaration
    [FormerlySerializedAs("highBeam")]
    public DashLight highBeamDashLight
    Field Value
    Type Description
    DashLight

    leftBlinkerDashLight

    Left turn signal indicator. Blinks when left turn signal is active.

    Declaration
    [FormerlySerializedAs("leftBlinker")]
    public DashLight leftBlinkerDashLight
    Field Value
    Type Description
    DashLight

    lowBeamDashLight

    Low beam indicator light. Illuminates when low beam headlights are active.

    Declaration
    [FormerlySerializedAs("lowBeam")]
    public DashLight lowBeamDashLight
    Field Value
    Type Description
    DashLight

    rightBlinkerDashLight

    Right turn signal indicator. Blinks when right turn signal is active.

    Declaration
    [FormerlySerializedAs("rightBlinker")]
    public DashLight rightBlinkerDashLight
    Field Value
    Type Description
    DashLight

    tcsDashLight

    TCS (Traction Control System) indicator light. Illuminates when TCS is actively limiting wheel spin.

    Declaration
    [FormerlySerializedAs("TCS")]
    public DashLight tcsDashLight
    Field Value
    Type Description
    DashLight

    useAbsDashLight

    Enables the ABS dash light. If false, the ABS light will not be updated.

    Declaration
    public bool useAbsDashLight
    Field Value
    Type Description
    bool

    useAnalogRpmGauge

    Enables the analog RPM gauge. If false, the analog tachometer will not be updated.

    Declaration
    public bool useAnalogRpmGauge
    Field Value
    Type Description
    bool

    useAnalogSpeedGauge

    Enables the analog speed gauge. If false, the analog speedometer will not be updated.

    Declaration
    public bool useAnalogSpeedGauge
    Field Value
    Type Description
    bool

    useCheckEngineDashLight

    Enables the check engine dash light. If false, the check engine light will not be updated.

    Declaration
    public bool useCheckEngineDashLight
    Field Value
    Type Description
    bool

    useDigitalGearGauge

    Enables the digital gear display. If false, the gear indicator will not be updated.

    Declaration
    public bool useDigitalGearGauge
    Field Value
    Type Description
    bool

    useDigitalRpmGauge

    Enables the digital RPM display. If false, the digital tachometer will not be updated.

    Declaration
    public bool useDigitalRpmGauge
    Field Value
    Type Description
    bool

    useDigitalSpeedGauge

    Enables the digital speed display. If false, the digital speedometer will not be updated.

    Declaration
    public bool useDigitalSpeedGauge
    Field Value
    Type Description
    bool

    useHighBeamDashLight

    Enables the high beam indicator light. If false, the high beam light will not be updated.

    Declaration
    public bool useHighBeamDashLight
    Field Value
    Type Description
    bool

    useLeftBlinkerDashLight

    Enables the left blinker indicator light. If false, the left turn signal light will not be updated.

    Declaration
    public bool useLeftBlinkerDashLight
    Field Value
    Type Description
    bool

    useLowBeamDashLight

    Enables the low beam indicator light. If false, the low beam light will not be updated.

    Declaration
    public bool useLowBeamDashLight
    Field Value
    Type Description
    bool

    useRightBlinkerDashLight

    Enables the right blinker indicator light. If false, the right turn signal light will not be updated.

    Declaration
    public bool useRightBlinkerDashLight
    Field Value
    Type Description
    bool

    useTcsDashLight

    Enables the TCS dash light. If false, the TCS light will not be updated.

    Declaration
    public bool useTcsDashLight
    Field Value
    Type Description
    bool

    vehicleController

    The VehicleController to read data from. Only used when dataSource is set to VehicleController.

    Declaration
    public VehicleController vehicleController
    Field Value
    Type Description
    VehicleController
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics