本文介绍了Unity C#:ScrollView出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好......
我正在尝试最后几天制作游戏,我在我的MenuManager.cs上遇到了这个问题
InvalidOperationException:由于对象的当前状态,操作无效
System.Collections.Stack.Peek()
UnityEngine.GUILayout.EndArea()(在C:/BuildAgent/work/d9c061b1c154f5ae/Runtime/ExportGenerated/Editor/GUILayout.cs:226)
MenuManager.Menu_ChooseMap()(在Assets / Scripts / MenuManager.cs:154)
MenuManager.OnGUI()(在Assets / Scripts / MenuManager.cs上) :31)
我无法继续没有修复,请回答我:D
谢谢
解决方案
Hello all...
I'm trying the last days to make a game and I've got this problem on my MenuManager.cs
InvalidOperationException: Operation is not valid due to the current state of the objectSystem.Collections.Stack.Peek ()
UnityEngine.GUILayout.EndArea () (at C:/BuildAgent/work/d9c061b1c154f5ae/Runtime/ExportGenerated/Editor/GUILayout.cs:226)
MenuManager.Menu_ChooseMap () (at Assets/Scripts/MenuManager.cs:154)
MenuManager.OnGUI () (at Assets/Scripts/MenuManager.cs:31)
I can't continue without fixing that please answer me :D
Thanks
解决方案
这篇关于Unity C#:ScrollView出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!