Reply To: Can Enums be saved as strings?

NodeCanvas Forums Custom Nodes & Tasks Can Enums be saved as strings? Reply To: Can Enums be saved as strings?

#16967
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;