It looks like there is an error happening sometimes when setting the hotControl.
Should not be capturing when there is a hotcontrol
UnityEngine.GUIUtility:set_hotControl(Int32)
CreativeSpore.SuperTilemapEditor.TilemapEditor:smile:oPaintSceneGUI() (at Assets/CreativeSpore/SuperTilemapEditor/Scripts/Tilemap/Editor/TilemapEditor.cs:669)
CreativeSpore.SuperTilemapEditor.TilemapEditor:OnSceneGUI() (at Assets/CreativeSpore/SuperTilemapEditor/Scripts/Tilemap/Editor/TilemapEditor.cs:285)
UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
I couldnāt find any information about this error. Is it a bug?
This line is triggering the error:
GUIUtility.hotControl = controlID;
And this is called before:
int controlID = GUIUtility.GetControlID(FocusType.Passive);
HandleUtility.AddDefaultControl(controlID);
EventType currentEventType = Event.current.GetTypeForControl(controlID);
hey Im having the same problem game runs nicely but when i want to build it says that there is 20 errors, Visualstudio runs fine with the scripts, no errors,
i also get this errors when building
Assets/Scripts/FollowPlayer.cs(7,12): error CS0246: The type or namespace name Vector3' could not be found. Are you missing an assembly reference? Assets/Scripts/FollowPlayer.cs(6,12): error CS0246: The type or namespace name Transformā could not be found. Are you missing an assembly reference?
Assets/Start.cs(4,22): error CS0246: The type or namespace name `MonoBehaviourā could not be found. Are you missing an assembly reference?
Assets/Scripts/Score.cs(4,22): error CS0246: The type or namespace name MonoBehaviour' could not be found. Are you missing an assembly reference? Assets/Scripts/PlayerMovement.cs(3,31): error CS0246: The type or namespace name MonoBehaviourā could not be found. Are you missing an assembly reference?
Getting similar weird errors. In my case not pointing to a specific line (sometimes):
Should not grab hot control with an active capture (current=Dockarea3 (x:0.00, y:0.00, width:1501.00, height:353.00) global rect: (x:0.00, y:0.00, width:1501.00, height:353.00) new=Dockarea5 (x:0.00, y:0.00, width:223.00, height:573.00) global rect: (x:0.00, y:0.00, width:223.00, height:573.00)
UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
Should not be capturing when there is a hotcontrol
UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
I am in 2017.1.1f. Once I saw this message (the second one) pointing to one slider, and once to a button, but I canāt reproduce it anymore. Iām upgrading to see if the weird errors go awayā¦
While writing this now I got a:
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)
UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
Lots of errors guys
EDIT. Version 2017.2.0f3 solved the issues for me.
EDIT2. I still get random
Should not be capturing when there is a hotcontrol
UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
Iām not even using GUIUtility.hotControl anywhere in my code. And given it is difficult to reproduce I donāt know how could I log a bug for this.
@karl_jones Got a similar bug in 2017.2 when simply selecting multiple particle systems in hierarchy/inspector which have been upgraded from older versions. (Case 972613)
SetMinMaxState is not allowed with multiple different values
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Awesome! ā could you link me to the bug case for this please?
I am currently developing an Asset (working on the 2017.1 version) and I want to be sure I can quote this if there are any issues from customers on any of these versions (plus I want to know where it originated because I want to be sure there is nothing wrong with my code, and find a way to workaround it if possible).
Im getting the same warning in 2018.2.10f, seems after i added #pragma warning disable to one of my scripts ( was getting the āThe variable [ā¦] is assigned but its value is never usedā warning when the variable was being used)
Should not be capturing when there is a hotcontrol
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)