Radio button option

An example of what the radio button looks like in-game.

Example

TODO: Redo Kotlin example with Kotlin DSL for enumerables and radiobuttons

Using an integer index

Using a custom enum class

Your field can be typed with an integer, or with an enum.

When using an integer, you NEED to provide the options property, otherwise it is not supported when using an enum.

Last updated