NWH Common
Search Results for

    Show / Hide Table of Contents

    Class ShowInTelemetry

    Attribute that marks a field or property to be displayed in the runtime telemetry UI. Used for monitoring vehicle parameters during gameplay and debugging.

    Inheritance
    object
    Attribute
    ShowInTelemetry
    Namespace: NWH.Common.Vehicles
    Assembly: NWH.Common.dll
    Syntax
    [AttributeUsage(AttributeTargets.All)]
    public class ShowInTelemetry : Attribute

    Constructors

    | Edit this page View Source

    ShowInTelemetry(float, float, string, string, int)

    Creates a ShowInTelemetry attribute with optional parameters.

    Declaration
    public ShowInTelemetry(float min = NaN, float max = NaN, string format = null, string unit = null, int priority = 1)
    Parameters
    Type Name Description
    float min
    float max
    string format
    string unit
    int priority

    Properties

    | Edit this page View Source

    Format

    Format string for displaying the value (e.g., "0.00", "0.0").

    Declaration
    public string Format { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Max

    Maximum value for the field (used for progress bar visualization).

    Declaration
    public float Max { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    Min

    Minimum value for the field (used for progress bar visualization).

    Declaration
    public float Min { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    Priority

    Display priority. 0 = highest (always visible), 3 = lowest (detailed info).

    Declaration
    public int Priority { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Unit

    Unit of measurement (e.g., "km/h", "RPM", "N", "°").

    Declaration
    public string Unit { get; set; }
    Property Value
    Type Description
    string
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics