Using ENUM Type within Quicksheet

Specify enum type for a data class is easy. Let's say that you want to set enum type for 'RareType' on a spreadsheet as the following:

The 'RareType' only can have one of value from three type which are Normal, Rare and Legend.

Because QuickSheet can not generate enum itself, you should first declare an enum type before generating script files.

Create an empty .cs file which usually contains various enums then declare 'RareType' enum type what for you've set on the spreadsheet.

public enum RareType
{
    Normal,
    Rare,
    Legend,
}

Now you can generate necessary script files without an error!

results matching ""

    No results matching ""