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.
Namespace: NWH.Common.Vehicles
Assembly: NWH.Common.dll
Syntax
[AttributeUsage(AttributeTargets.All)]
public class ShowInTelemetry : Attribute
Constructors
| Edit this page View SourceShowInTelemetry(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 SourceFormat
Format string for displaying the value (e.g., "0.00", "0.0").
Declaration
public string Format { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Max
Maximum value for the field (used for progress bar visualization).
Declaration
public float Max { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Min
Minimum value for the field (used for progress bar visualization).
Declaration
public float Min { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Priority
Display priority. 0 = highest (always visible), 3 = lowest (detailed info).
Declaration
public int Priority { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Unit
Unit of measurement (e.g., "km/h", "RPM", "N", "°").
Declaration
public string Unit { get; set; }
Property Value
| Type | Description |
|---|---|
| string |