public Google2uExportOptions(string in_prefix) { _Prefix = in_prefix; LowercaseHeader = Google2uGUIUtil.GetBool(in_prefix + "LowercaseHeader", LowercaseHeader); TrimStrings = Google2uGUIUtil.GetBool(in_prefix + "TrimStrings", TrimStrings); TrimStringArrays = Google2uGUIUtil.GetBool(in_prefix + "TrimStringArrays", TrimStringArrays); ArrayDelimiters = Google2uGUIUtil.GetInt(in_prefix + "ArrayDelimiters", ArrayDelimiters); StringArrayDelimiters = Google2uGUIUtil.GetInt(in_prefix + "StringArrayDelimiters", StringArrayDelimiters); ComplexTypeDelimiters = Google2uGUIUtil.GetInt(in_prefix + "ComplexTypeDelimiters", ComplexTypeDelimiters); ComplexArrayDelimiters = Google2uGUIUtil.GetInt(in_prefix + "ComplexArrayDelimiters", ComplexArrayDelimiters); #region ObjectDatabase Options var dbObjName = Google2uGUIUtil.GetString(_Prefix + "GameObjectDatabaseName", string.Empty); if (string.IsNullOrEmpty(dbObjName) == false) { var go = GameObject.Find(dbObjName); if (go) { ExportDatabaseGameObjectName = dbObjName; _ExportDatabaseGameObject = go; } } _OverrideObjectDatabaseNames = new Dictionary <string, string>(); var tmpOverrides = Google2uGUIUtil.GetString(_Prefix + "OverrideObjectDatabaseNames", string.Empty); var tmpOverrideSplit = tmpOverrides.Split(','); foreach (var s in tmpOverrideSplit) { var sSplit = s.Split('|'); if (sSplit.Length == 2) { _OverrideObjectDatabaseNames.Add(sSplit[0], sSplit[1]); } } GeneratePlaymakerActions = Google2uGUIUtil.GetBool(in_prefix + "GeneratePlaymakerActions", GeneratePlaymakerActions); UseDoNotDestroy = Google2uGUIUtil.GetBool(in_prefix + "UseDoNotDestroy", UseDoNotDestroy); ObjectDBCullColumns = Google2uGUIUtil.GetBool(in_prefix + "ObjectDBCullColumns", ObjectDBCullColumns); ObjectDBCullRows = Google2uGUIUtil.GetBool(in_prefix + "ObjectDBCullRows", ObjectDBCullRows); #endregion #region Static DB Options StaticDBCullColumns = Google2uGUIUtil.GetBool(in_prefix + "StaticDBCullColumns", StaticDBCullColumns); StaticDBCullRows = Google2uGUIUtil.GetBool(in_prefix + "StaticDBCullRows", StaticDBCullRows); #endregion #region JSON Options EscapeUnicode = Google2uGUIUtil.GetBool(in_prefix + "EscapeUnicode", EscapeUnicode); JSONCellArrayToString = Google2uGUIUtil.GetBool(in_prefix + "JSONCellArrayToString", JSONCellArrayToString); JSONExportClass = Google2uGUIUtil.GetBool(in_prefix + "JSONExportClass", JSONExportClass); JSONExportType = Google2uGUIUtil.GetEnum(in_prefix + "JSONExportType", JSONExportType); JSONCullColumns = Google2uGUIUtil.GetBool(in_prefix + "JSONCullColumns", JSONCullColumns); JSONCullRows = Google2uGUIUtil.GetBool(in_prefix + "JSONCullRows", JSONCullRows); JSONIgnoreIDColumn = Google2uGUIUtil.GetBool(in_prefix + "JSONIgnoreIDColumn", JSONIgnoreIDColumn); JSONExportPretty = Google2uGUIUtil.GetBool(in_prefix + "JSONExportPretty", JSONExportPretty); #endregion #region XML Options XMLCellArrayToString = Google2uGUIUtil.GetBool(in_prefix + "XMLCellArrayToString", XMLCellArrayToString); XMLCullColumns = Google2uGUIUtil.GetBool(in_prefix + "XMLCullColumns", XMLCullColumns); XMLCullRows = Google2uGUIUtil.GetBool(in_prefix + "XMLCullRows", XMLCullRows); #endregion #region CSV Options EscapeCSVStrings = Google2uGUIUtil.GetBool(in_prefix + "EscapeCSVStrings", EscapeCSVStrings); CSVCullColumns = Google2uGUIUtil.GetBool(in_prefix + "CSVCullColumns", CSVCullColumns); CSVCullRows = Google2uGUIUtil.GetBool(in_prefix + "CSVCullRows", CSVCullRows); CSVConvertLineBreaks = Google2uGUIUtil.GetBool(in_prefix + "CSVConvertLineBreaks", CSVConvertLineBreaks); #endregion #region NGUI Options EscapeNGUIStrings = Google2uGUIUtil.GetBool(in_prefix + "EscapeNGUIStrings", EscapeNGUIStrings); NGUICullColumns = Google2uGUIUtil.GetBool(in_prefix + "NGUICullColumns", NGUICullColumns); NGUICullRows = Google2uGUIUtil.GetBool(in_prefix + "NGUICullRows", NGUICullRows); NGUIConvertLineBreaks = Google2uGUIUtil.GetBool(in_prefix + "NGUIConvertLineBreaks", NGUIConvertLineBreaks); NGUILegacyExport = Google2uGUIUtil.GetBool(in_prefix + "NGUILegacyExport", NGUILegacyExport); #endregion }