This question was
closed Jun 19, 2017 at 06:41 PM by
ATMunn for the following reason:
I figured it out myself.
Question by
ATMunn · Jun 23, 2017 at 04:15 AM ·
c#errorstandard-assets
InvalidOperationException: Operation is not valid due to the current state of the object
I know others have already mentioned this error, but they don't seem to apply in my case. For some reason, I'm getting this error even though I've done no actual coding, I just imported some of the standard assets. Specifically, the two 2D platformer character-related scripts, and the 2d cross-platform scripts. Here's the full traceback (or one of them anyways, I'm getting about 50 of them)
InvalidOperationException: Operation is not valid due to the current state of the object
System.Collections.Stack.Pop () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections/Stack.cs:329)
UnityEngine.GUILayoutUtility.EndLayoutGroup () (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayoutUtility.cs:323)
UnityEngine.GUILayout.EndVertical () (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayout.cs:322)
UnityEditor.PreferencesWindow.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/PreferencesWindow/PreferencesWindow.cs:305)
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:262)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:255)
UnityEditor.HostView.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:84)
UnityEditor.HostView:OnGUI()
Comment
Follow this Question
Related Questions
AddForce 2D it's not working 0 Answers
How to handle UnityWebRequest Errors when throws Curl 28 Error 1 Answer
First person Character Controller Script Error, 0 Answers
First Person Save And Load Rotation 0 Answers
CS1513 and CS1022 problem 1 Answer