Reply To: Can Enums be saved as strings?

Forums 💬 NodeCanvas 🤩 Custom Nodes and Tasks Can Enums be saved as strings? Reply To: Can Enums be saved as strings?

#12817
johnrgeraci
Participant

    To answer my own question:  Yes, there is a setting within the nodeCanvas package that saves enums out as strings.  It’s in fsGlobalConfig.cs:

    ///<summary> Enums are serialized using their names by default. Setting this to true will serialize them as integers instead.</summary>
    public static bool SerializeEnumsAsInteger = true;