We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5289e7c commit fc85fdfCopy full SHA for fc85fdf
1 file changed
Editor/GenericTypesAnalyzer/GenericTypesAnalyzer.cs
@@ -22,6 +22,12 @@ internal static class GenericTypesAnalyzer
22
Justification = "We need | instead of || so that all methods are executed before moving to the next statement.")]
23
private static void AnalyzeGenericTypes()
24
{
25
+ // If PlayOptions is disabled and the domain reload happens on entering Play Mode, no changes to scripts
26
+ // can be detected but NullReferenceException is thrown from UnityEditor internals. Since it is useless
27
+ // to check changes to scripts in this situation, we can safely ignore this domain reload.
28
+ if (EditorApplication.isPlayingOrWillChangePlaymode)
29
+ return;
30
+
31
#if GENERIC_UNITY_OBJECTS_DEBUG
32
using var timer = Timer.CheckInMilliseconds("AnalyzeGenericTypes");
33
#endif
0 commit comments