public void Import(ScriptableObject scriptableObject)
        {
            if (this.settings == null)
            {
                return;
            }

            string file = ImportExportHelper.PersistentPath(scriptableObject.name + ".json");

            if (this.settings.CustomDirectory)
            {
                string source = ImportExportHelper.AbsolutePath(this.settings.DirectoryPath, scriptableObject.name + ".json");
                ImportExportHelper.CopyFile(source, file);
            }

            if (ImportExportHelper.ExistsFile(file))
            {
                string json = ImportExportHelper.ImportFile(file);
                JsonUtility.FromJsonOverwrite(json, scriptableObject);
                LogNow(ImportExportLogType.Import, scriptableObject);
            }
            else
            {
                Export(scriptableObject);
            }
        }
        public void Export(ScriptableObject scriptableObject)
        {
            if (this.settings == null)
            {
                return;
            }

            string json = JsonUtility.ToJson(scriptableObject, true);
            string file = ImportExportHelper.PersistentPath(scriptableObject.name + ".json");

            ImportExportHelper.ExportFile(file, json);

            if (this.settings.CustomDirectory)
            {
                file = ImportExportHelper.AbsolutePath(this.settings.DirectoryPath, scriptableObject.name + ".json");
                ImportExportHelper.BackupFile(file);
                ImportExportHelper.ExportFile(file, json);
            }

            LogNow(ImportExportLogType.Export, scriptableObject);
        }