Should Not Be Capturing When There Is A Hotcontrol

This message is occasionally popping up in the console for some of my more complex projects. I’m not sure how to duplicate the issue (so, can’t submit it as a bug, if it even is one), so I’m trying to determine what might be causing it. Last time, it popped up when I clicked a compiler warning, in the console.

I THINK it is only happening after I recompile, but I’m not 100% sure of that.

I’ve searched my own codebase, but nowhere do I reference: Unity – Scripting API: GUIUtility.hotControl

I can see it is being called from https://github.com/MattRix/UnityDecompiled/blob/master/UnityEngine/UnityEngine.Experimental.UIElements/EventDispatcher.cs but I’m still not sure what to look for.

Any suggestions on how to prevent this popup would be appreciated.

Edit/addition: The message pops up with a YELLOW icon, indicating he is only a warning. I expect this is why No stack trace is provided. The only way I found that decompiled code linked above, was by searching the entire github project site, for the warning message text.

EDIT: I found, as @Adam-Mechtley requested, some info in the EditorLogs, related to this popup. I’m pasting here (what I think is) the relevant section of the log:

Refer to more articles:  When Does Ups Usually Deliver

Refreshing native plugins compatible for Editor in 0.37 ms, found 3 plugins. Preloading 1 native plugins for Editor in 0.35 ms. Mono: successfully reloaded assembly Refreshing native plugins compatible for Editor in 0.41 ms, found 3 plugins. Preloading 1 native plugins for Editor in 0.39 ms. – Total AssetImport time: 0.071462s, AssetImport time: 0.000000s, Asset hashing: 0.000000s [0 B, 0.000000 mb/s] – Completed reload, in 1.046 seconds Initializing Unity.PackageManager (PackageManager) v2017.2.0 for Unity v2017.2.0f3 Registering platform support modules: Registered platform support modules in: 0.0347004s. Native extension for WindowsStandalone target not found Native extension for Android target not found Should not be capturing when there is a hotcontrol UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object) UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) UnityEngine.Logger:Log(LogType, Object) UnityEngine.Debug:Log(Object) UnityEngine.Experimental.UIElements.EventDispatcher:TakeCapture(IEventHandler) (at C:buildslaveunitybuildRuntimeUIElementsManagedEventDispatcher.cs:90) UnityEngine.Experimental.UIElements.UIElementsUtility:TakeCapture() (at C:buildslaveunitybuildRuntimeUIElementsManagedUIElementsUtility.cs:54) UnityEngine.GUIUtility:TakeCapture() (at C:buildslaveunitybuildRuntimeIMGUIManagedGUIUtility.cs:113) UnityEngine.GUIUtility:Internal_SetHotControl(Int32) UnityEngine.GUIUtility:set_hotControl(Int32) (at C:buildslaveunitybuildRuntimeIMGUIManagedGUIUtility.cs:105) UnityEditor.ListViewShared:HasMouseDown(InternalListViewState, Rect, Int32) (at C:buildslaveunitybuildEditorMonoGUIListViewShared.cs:188) UnityEditor.ListViewShared:HasMouseDown(InternalListViewState, Rect) (at C:buildslaveunitybuildEditorMonoGUIListViewShared.cs:179) UnityEditor.ListViewElementsEnumerator:MoveNext() (at C:buildslaveunitybuildEditorMonoGUIListViewShared.cs:370) UnityEditor.ConsoleWindow:OnGUI() (at C:buildslaveunitybuildEditorMonoConsoleWindow.cs:414) System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&) System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222) System.Reflection.MethodBase:Invoke(Object, Object[]) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115) UnityEditor.HostView:Invoke(String, Object) (at C:buildslaveunitybuildEditorMonoHostView.cs:285) UnityEditor.HostView:Invoke(String) (at C:buildslaveunitybuildEditorMonoHostView.cs:278) UnityEditor.HostView:InvokeOnGUI(Rect) (at C:buildslaveunitybuildEditorMonoHostView.cs:245) UnityEditor.DockArea:OldOnGUI() (at C:buildslaveunitybuildEditorMonoGUIDockArea.cs:383) UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI(Event) (at C:buildslaveunitybuildRuntimeUIElementsManagedIMGUIContainer.cs:127) UnityEngine.Experimental.UIElements.IMGUIContainer:HandleEvent(EventBase) (at C:buildslaveunitybuildRuntimeUIElementsManagedIMGUIContainer.cs:213) UnityEngine.Experimental.UIElements.EventDispatcher:PropagateEvent(VisualElement, EventBase) (at C:buildslaveunitybuildRuntimeUIElementsManagedEventDispatcher.cs:343) UnityEngine.Experimental.UIElements.EventDispatcher:DispatchEvent(EventBase, BaseVisualElementPanel) (at C:buildslaveunitybuildRuntimeUIElementsManagedEventDispatcher.cs:252) UnityEngine.Experimental.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel) (at C:buildslaveunitybuildRuntimeUIElementsManagedUIElementsUtility.cs:207) UnityEngine.Experimental.UIElements.UIElementsUtility:ProcessEvent(Int32, IntPtr) (at C:buildslaveunitybuildRuntimeUIElementsManagedUIElementsUtility.cs:72) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:buildslaveunitybuildRuntimeIMGUIManagedGUIUtility.cs:175) (Filename: /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs Line: 222)

EDIT2: bug submitted- https://fogbugz.unity3d.com/default.asp?968044_05s1gv99bq2ofkr8

Related Posts

When Should I Get A Mole Checked

Most people have moles, and most of those moles never cause health problems. But some develop into melanoma, a dangerous skin cancer.You may be interested What It…

When Did Welcome Home Arg Come Out

When Did Welcome Home Arg Come Out

The cast of Welcome Home. From left to right: Howdy, Frank, Julie, Wally, Barnaby, Sally, Eddie, and Poppy. Starting in 1969, the Playfellow Workshop filmed a children’s…

When Do I Start Using Chlorhexidine After Tooth Extraction

Caring for your teeth and mouth Taking care of your teeth and mouth includes brushing your teeth and using mouthwash. Here are some do’s and don’ts of…

When Is The Celebration Bowl

Since 2015, the MEAC and SWAC conference champions face off in a postseason football clash known as the Celebration Bowl. The Celebration Bowl celebrates great football and…

When Can You Change Your Belly Button Piercing

How to Heal Your Belly Button Piercing Faster The short answer is: You can’t, but the good news is you can help your new belly piercing significantly…

When Did Shirley Caesar Pass Away

Bio Shirley Caesar was born October 13, 1938, in Durham, North Carolina, the 10th of 13 children. Her father was a tobacco worker, a preacher, and a…