unaryPlus

operator fun <K : Setting<*>> K.unaryPlus(): K

Overloads the unaryPlus operator for Setting classes to register them to the module. The following is an example of how it can be used to define a setting for a module.

private val distance = +NumberSetting("Distance", 4.0, 1.0,10.0,0.1)

See also