![]() |
tModLoader v2025.05
A mod to make and play Terraria mods
|
Use this to set an increment for sliders (if using SliderAttribute) or the +/- buttons. The slider will move by the amount assigned. The +/- buttons will adjust the value by the amount as well. Remember that this is just a UI suggestion and manual editing of config files can specify other values, so validate your values. Defaults are as follows:
float: 0.01f
byte/int/uint/long/ulong: 1 When using this, you might need to cast the arguments to the desired numeric type to call the correct overload.
More...
Inherits Attribute.
Properties | |
object | Increment [get] |
Use this to set an increment for sliders (if using SliderAttribute) or the +/- buttons. The slider will move by the amount assigned. The +/- buttons will adjust the value by the amount as well.
Remember that this is just a UI suggestion and manual editing of config files can specify other values, so validate your values.
Defaults are as follows:
float: 0.01f
byte/int/uint/long/ulong: 1
When using this, you might need to cast the arguments to the desired numeric type to call the correct overload.