Hello! I am getting the following Error while playing. Code (Text): Assertion failed: Assertion failed on expression: '!dest.m_MultiFrameGUIState.m_NamedKeyControlList' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) I cannot make any sens of that. Thank you for help.[/Code]
Lol... you edited your post. Now it makes more sense. Usually a little sample of code throwing the error helps too.
So... thats a good thing... coherency. ...right? Your initial post was not at all what it is now. So you should have been able to establish reason to expression. If not, well thats all good too. GL
With just an error posted, and no sample code related to the error, and no information at all... im not to sure what you are encountering. Most people would need to see the piece of code that is throwing the error. But you might get lucky.
The Thing is, that i do not know what causes the Error. So my first question is: What means this Error?
Generally, An assertion statement specifies a condition that you expect to be true at a point in your program. If that condition is not true, the assertion fails, execution of your program is interrupted, and the Assertion Failed dialog box appears. Thus why showing the code involved will help greatly
This is all, what I added today: Code (C#): [LEFT][FONT=Helvetica][COLOR=rgb(51, 51, 51)]using System.Collections; using System.Collections.Generic; using UnityEngine; public class Shop : MonoBehaviour { public GameObject shopPanel; /* public void CloseShop() { shopPanel.SetActive (false); } */ }[/COLOR][/FONT][/LEFT] Code (C#): using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public class StartGame : MonoBehaviour { public GameObject shopPanel; public void PlayGame () { SceneManager.LoadScene (SceneManager.GetActiveScene ().buildIndex + 1); } public void QuitGame () { Application.Quit (); } // Only this was added public void OpenShop() { shopPanel.SetActive (true); } }
My understanding is that this is a harmless bug that shows up from time to time and has been corrected with the most recent beta releases of Unity. https://gamedev.stackexchange.com/q...keyboard-ctrlshiftp-assertion-f/156992#156992 https://issuetracker.unity3d.com/is...-multiframeguistate-dot-m-namedkeycontrollist https://issuetracker.unity3d.com/is...ering-play-mode-paused-and-forwarding-a-frame