NWH Common
Search Results for

    Show / Hide Table of Contents

    Class ShowInSettings

    Attribute that marks a field to be displayed in runtime settings UI. Allows players to adjust vehicle parameters during gameplay.

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

    Constructors

    | Edit this page View Source

    ShowInSettings()

    Declaration
    public ShowInSettings()
    | Edit this page View Source

    ShowInSettings(float, float, float)

    Creates a settings attribute with specified min, max, and step values.

    Declaration
    public ShowInSettings(float min, float max, float step = 0.1)
    Parameters
    Type Name Description
    float min
    float max
    float step
    | Edit this page View Source

    ShowInSettings(string)

    Creates a settings attribute with a custom display name.

    Declaration
    public ShowInSettings(string name)
    Parameters
    Type Name Description
    string name
    | Edit this page View Source

    ShowInSettings(string, float, float, float)

    Creates a settings attribute with custom name and value constraints.

    Declaration
    public ShowInSettings(string name, float min, float max, float step = 0.1)
    Parameters
    Type Name Description
    string name
    float min
    float max
    float step

    Fields

    | Edit this page View Source

    max

    Maximum value for the setting slider.

    Declaration
    public float max
    Field Value
    Type Description
    float
    | Edit this page View Source

    min

    Minimum value for the setting slider.

    Declaration
    public float min
    Field Value
    Type Description
    float
    | Edit this page View Source

    name

    Display name for the setting in the UI.

    Declaration
    public string name
    Field Value
    Type Description
    string
    | Edit this page View Source

    step

    Increment step for the slider. Smaller values allow finer adjustment.

    Declaration
    public float step
    Field Value
    Type Description
    float
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics