@@ -12,7 +12,7 @@ public class BacktraceConfigurationEditor : UnityEditor.Editor
1212 protected static bool showMetricsSettings = false ;
1313 protected static bool showClientAdvancedSettings = false ;
1414 protected static bool showDatabaseSettings = false ;
15-
15+ protected static bool showNativeCrashesSettings = false ;
1616 public override void OnInspectorGUI ( )
1717 {
1818 serializedObject . Update ( ) ;
@@ -43,21 +43,6 @@ public override void OnInspectorGUI()
4343 EditorGUILayout . PropertyField (
4444 serializedObject . FindProperty ( "IgnoreSslValidation" ) ,
4545 new GUIContent ( BacktraceConfigurationLabels . LABEL_IGNORE_SSL_VALIDATION ) ) ;
46- #endif
47- #if UNITY_ANDROID || UNITY_IOS
48- EditorGUILayout . PropertyField (
49- serializedObject . FindProperty ( "HandleANR" ) ,
50- new GUIContent ( BacktraceConfigurationLabels . LABEL_HANDLE_ANR ) ) ;
51-
52- EditorGUILayout . PropertyField (
53- serializedObject . FindProperty ( "OomReports" ) ,
54- new GUIContent ( BacktraceConfigurationLabels . LABEL_HANDLE_OOM ) ) ;
55-
56- #if UNITY_2019_2_OR_NEWER && UNITY_ANDROID
57- EditorGUILayout . PropertyField (
58- serializedObject . FindProperty ( "SymbolsUploadToken" ) ,
59- new GUIContent ( BacktraceConfigurationLabels . LABEL_SYMBOLS_UPLOAD_TOKEN ) ) ;
60- #endif
6146#endif
6247 EditorGUILayout . PropertyField (
6348 serializedObject . FindProperty ( "UseNormalizedExceptionMessage" ) ,
@@ -141,20 +126,41 @@ public override void OnInspectorGUI()
141126 serializedObject . FindProperty ( "DeduplicationStrategy" ) ,
142127 new GUIContent ( BacktraceConfigurationLabels . LABEL_DEDUPLICATION_RULES ) ) ;
143128
129+ GUIStyle showNativeCrashesSupportFoldout = new GUIStyle ( EditorStyles . foldout ) ;
130+ showNativeCrashesSettings = EditorGUILayout . Foldout ( showNativeCrashesSettings , BacktraceConfigurationLabels . LABEL_NATIVE_CRASHES , showNativeCrashesSupportFoldout ) ;
131+ if ( showNativeCrashesSettings )
132+ {
144133#if UNITY_STANDALONE_WIN
145134 EditorGUILayout . PropertyField (
146135 serializedObject . FindProperty ( "MinidumpType" ) ,
147136 new GUIContent ( BacktraceConfigurationLabels . LABEL_MINIDUMP_SUPPORT ) ) ;
148137#endif
149138
150- #if UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN
151- EditorGUILayout . PropertyField (
152- serializedObject . FindProperty ( "AddUnityLogToReport" ) ,
153- new GUIContent ( BacktraceConfigurationLabels . LABEL_ADD_UNITY_LOG ) ) ;
154139
155- #endif
140+ #if UNITY_ANDROID || UNITY_IOS
141+ EditorGUILayout . PropertyField (
142+ serializedObject . FindProperty ( "CaptureNativeCrashes" ) ,
143+ new GUIContent ( BacktraceConfigurationLabels . CAPTURE_NATIVE_CRASHES ) ) ;
144+
145+ EditorGUILayout . PropertyField (
146+ serializedObject . FindProperty ( "HandleANR" ) ,
147+ new GUIContent ( BacktraceConfigurationLabels . LABEL_HANDLE_ANR ) ) ;
148+
149+ EditorGUILayout . PropertyField (
150+ serializedObject . FindProperty ( "OomReports" ) ,
151+ new GUIContent ( BacktraceConfigurationLabels . LABEL_HANDLE_OOM ) ) ;
156152
153+ #if UNITY_2019_2_OR_NEWER && UNITY_ANDROID
154+ EditorGUILayout . PropertyField (
155+ serializedObject . FindProperty ( "ClientSideUnwinding" ) ,
156+ new GUIContent ( BacktraceConfigurationLabels . LABEL_ENABLE_CLIENT_SIDE_UNWINDING ) ) ;
157157
158+ EditorGUILayout . PropertyField (
159+ serializedObject . FindProperty ( "SymbolsUploadToken" ) ,
160+ new GUIContent ( BacktraceConfigurationLabels . LABEL_SYMBOLS_UPLOAD_TOKEN ) ) ;
161+ #endif
162+ #endif
163+ }
158164 GUIStyle breadcrumbsSupportFoldout = new GUIStyle ( EditorStyles . foldout ) ;
159165 showBreadcrumbsSettings = EditorGUILayout . Foldout ( showBreadcrumbsSettings , BacktraceConfigurationLabels . LABEL_BREADCRUMBS_SECTION , breadcrumbsSupportFoldout ) ;
160166 if ( showBreadcrumbsSettings )
@@ -176,11 +182,12 @@ public override void OnInspectorGUI()
176182 }
177183 }
178184
179- #if UNITY_ANDROID || UNITY_IOS
185+ #if UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN
180186 EditorGUILayout . PropertyField (
181- serializedObject . FindProperty ( "CaptureNativeCrashes " ) ,
182- new GUIContent ( BacktraceConfigurationLabels . CAPTURE_NATIVE_CRASHES ) ) ;
187+ serializedObject . FindProperty ( "AddUnityLogToReport " ) ,
188+ new GUIContent ( BacktraceConfigurationLabels . LABEL_ADD_UNITY_LOG ) ) ;
183189#endif
190+
184191 EditorGUILayout . PropertyField (
185192 serializedObject . FindProperty ( "AutoSendMode" ) ,
186193 new GUIContent ( BacktraceConfigurationLabels . LABEL_AUTO_SEND_MODE ) ) ;
0 commit comments