

我在打开一个新的Unity2022.1的2D项目时报错
,4 年前
发布于技术支持
1
我在打开一个新的Unity2022.1的2D项目时,我没有操作过这个项目,但是报错 ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <f4694e4600d74e03a4e35def8b97021c>:0) UnityEditor.GameView.DoToolbarGUI () (at <c246e10e54e2434da3843e99b05b8d15>:0) UnityEditor.GameView.OnGUI () (at <c246e10e54e2434da3843e99b05b8d15>:0) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <c246e10e54e2434da3843e99b05b8d15>:0) UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <c246e10e54e2434da3843e99b05b8d15>:0) UnityEditor.DockArea.OldOnGUI () (at <c246e10e54e2434da3843e99b05b8d15>:0) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <dca3629175e1466388f11ff01cb0733a>:0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <dca3629175e1466388f11ff01cb0733a>:0) UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <dca3629175e1466388f11ff01cb0733a>:0) UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <dca3629175e1466388f11ff01cb0733a>:0) Rethrow as ImmediateModeException UnityEngine.UIElements.UIR.RenderChain.Render () (at <dca3629175e1466388f11ff01cb0733a>:0) UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <dca3629175e1466388f11ff01cb0733a>:0) UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <dca3629175e1466388f11ff01cb0733a>:0) UnityEngine.UIElements.Panel.UpdateForRepaint () (at <dca3629175e1466388f11ff01cb0733a>:0) UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <dca3629175e1466388f11ff01cb0733a>:0) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <dca3629175e1466388f11ff01cb0733a>:0) UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <dca3629175e1466388f11ff01cb0733a>:0) UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <dca3629175e1466388f11ff01cb0733a>:0) UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <dca3629175e1466388f11ff01cb0733a>:0) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <06de9b20840f41908c50a625ea771d40>:0)
345 次浏览
评论 0
1个回答
0
一般来讲,尤其是对于版本较高的Unity来说,如果命令行报错,但不影响运行,即报错是可以clear掉的,那这个报错是无所谓的,不需要去管。高版本的Editor UI会时不时的来几个报错。
,4 年前回答
评论 0

问
AI
全新AI功能上线
1. 基于Unity微调:专为Unity优化,提供精准高效的支持。
2. 深度集成:内置于团结引擎,随时查阅与学习。
3. 多功能支持:全面解决技术问题与学习需求。

问
AI

