private void OnGetClusterConfig(byte[] respData, string data) { #if UNITY_EDITOR if (respData != null) { Log.Debug("ExampleRetrieveAndRank", "OnGetClusterConfig | success!"); string currentDirectory = Application.dataPath; var path = EditorUtility.SaveFilePanel("Save Config", currentDirectory, "config", "zip"); if (!string.IsNullOrEmpty(path)) { currentDirectory = Path.GetDirectoryName(path); m_RetrieveAndRank.SaveConfig(OnSaveConfig, respData, path, data); } } else { Log.Debug("ExampleRetrieveAndRank", "OnGetClusterConfig | respData is null!"); } #else Log.Debug("ExampleRetrieveAndRank", "Not in editor - skipping download."); #endif }