UnityEditor.InspectorWindow.OnSelectionChange() 异常

UnityEditor.InspectorWindow.OnSelectionChange() exeption

我前段时间开始在我的项目中使用google播放服务。 错误随机出现。当我转到 Window/Google Play Games/Setup/Android Setup... 然后单击 Setup 时,错误消失了,但经过几次编译后它再次出现。我不知道是什么导致了这个问题。

虽然它与 Google Play Games 有关,但以前没有发生过,所以我不确定是否是这样。

NullReferenceException: Object reference not set to an instance of an object UnityEditor.InspectorWindow.OnSelectionChange () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:148) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115) UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:285) UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:278) UnityEditor.HostView.OnSelectionChange () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:167) UnityEditor.AssetDatabase:Refresh() GooglePlayGames.Editor.GPGSUpgrader:.cctor() (at Assets/GooglePlayGames/Editor/GPGSUpgrader.cs:112) UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

我可以用这个错误构建项目,它似乎可以工作,但很烦人。我可以做些什么来跟踪问题?

这是一个已知的 Google Play 游戏 错误。您可以阅读更多相关信息 here

Unity 2017.2.0f3 修复了这个问题。

它在后续构建中被破坏