Class ShowInSettings
Attribute that marks a field to be displayed in runtime settings UI. Allows players to adjust vehicle parameters during gameplay.
Namespace: NWH.Common.Vehicles
Assembly: NWH.Common.dll
Syntax
[AttributeUsage(AttributeTargets.Field)]
public class ShowInSettings : Attribute
Constructors
| Edit this page View SourceShowInSettings()
Declaration
public ShowInSettings()
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 |
ShowInSettings(string)
Creates a settings attribute with a custom display name.
Declaration
public ShowInSettings(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
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 Sourcemax
Maximum value for the setting slider.
Declaration
public float max
Field Value
| Type | Description |
|---|---|
| float |
min
Minimum value for the setting slider.
Declaration
public float min
Field Value
| Type | Description |
|---|---|
| float |
name
Display name for the setting in the UI.
Declaration
public string name
Field Value
| Type | Description |
|---|---|
| string |
step
Increment step for the slider. Smaller values allow finer adjustment.
Declaration
public float step
Field Value
| Type | Description |
|---|---|
| float |