private void GUIShareData() { is_data_share_expanded = Foldout("User Data Collection", is_data_share_expanded); if (is_data_share_expanded) { EditorGUI.indentLevel += 2; Toggle("share_user_data", "Share Anonomyous Data for usage statistics", "", EditorStyles.boldLabel); EditorGUILayout.LabelField("The data is identified by a hash of your macaddress. This is to make sure we don't log any user twice, while still keeping all data anonymous."); if (Config.Get().share_user_data) { Toggle("share_installed_unity_version", "Share my installed Unity Version", ""); Toggle("share_installed_editor_version", "Share my installed Thry Editor Version", ""); Toggle("share_used_shaders", "Share the names of installed shaders using thry editor", ""); GUILayout.BeginHorizontal(); GUILayout.Space(EditorGUI.indentLevel * 15); if (GUILayout.Button("Show all data collected about me", GUILayout.ExpandWidth(false))) { Helper.DownloadStringASync(URL.DATA_SHARE_GET_MY_DATA + "?hash=" + Helper.GetMacAddress().GetHashCode(), delegate(string s){ TextPopup popup = ScriptableObject.CreateInstance <TextPopup>(); popup.position = new Rect(Screen.width / 2, Screen.height / 2, 512, 480); popup.titleContent = new GUIContent("Your Data"); popup.text = s; popup.ShowUtility(); }); } GUILayout.EndHorizontal(); } EditorGUI.indentLevel -= 2; } }