private void OnGUI() { m_scrollPos = EditorGUILayout.BeginScrollView(m_scrollPos); EditorGUILayout.LabelField("Application", EditorStyles.boldLabel); var drawer = new Drawer(224); drawer.Draw("dataPath", Application.dataPath); drawer.Draw("consoleLogPath", Application.consoleLogPath); drawer.Draw("persistentDataPath", Application.persistentDataPath); drawer.Draw("streamingAssetsPath", Application.streamingAssetsPath); drawer.Draw("temporaryCachePath", Application.temporaryCachePath); EditorGUILayout.Space(); EditorGUILayout.LabelField("EditorApplication", EditorStyles.boldLabel); drawer.Draw("applicationContentsPath", EditorApplication.applicationContentsPath); drawer.Draw("applicationPath", EditorApplication.applicationPath); EditorGUILayout.Space(); EditorGUILayout.LabelField("InternalEditorUtility", EditorStyles.boldLabel); drawer.Draw("unityPreferencesFolder", InternalEditorUtility.unityPreferencesFolder); drawer.Draw("GetCrashReportFolder", InternalEditorUtility.GetCrashReportFolder()); drawer.Draw("GetEditorAssemblyPath", InternalEditorUtility.GetEditorAssemblyPath()); drawer.Draw("GetEngineAssemblyPath", InternalEditorUtility.GetEngineAssemblyPath()); drawer.Draw("GetEngineCoreModuleAssemblyPath", InternalEditorUtility.GetEngineCoreModuleAssemblyPath()); EditorGUILayout.EndScrollView(); }
private static void OpenCrashReportFolder() { Debug.Log(InternalEditorUtility.GetCrashReportFolder()); RevealInFinder(InternalEditorUtility.GetCrashReportFolder()); }