Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Vários erros no console

Olá, quando eu estava na parte 1: aula 3, zumbi seguir o jogador, ele manda colocar o console ao lado de project, após umas 2 a 3 atividades, ele começou a aparecer esse erro repetidamente:

NullReferenceException: Object reference not set to an instance of an object UnityEditor.Graphs.AnimationStateMachine.Graph.GenerateConnectionKey (UnityEditor.Graphs.Node srcNode, UnityEditor.Graphs.Node dstNode) (at <732b665a0eb44a80b9931c01ad63f8b8>:0) UnityEditor.Graphs.AnimationStateMachine.Graph.GetEdgeInfo (UnityEditor.Graphs.Edge edge) (at <732b665a0eb44a80b9931c01ad63f8b8>:0) UnityEditor.Graphs.AnimationStateMachine.EdgeGUI.DoEdges () (at <732b665a0eb44a80b9931c01ad63f8b8>:0) UnityEditor.Graphs.AnimationStateMachine.GraphGUI.OnGraphGUI () (at <732b665a0eb44a80b9931c01ad63f8b8>:0) UnityEditor.Graphs.AnimatorControllerTool.StateMachineView (UnityEngine.Rect position, System.Single zoomLevel) (at <732b665a0eb44a80b9931c01ad63f8b8>:0) UnityEditor.Graphs.AnimatorControllerTool.DoGraph (UnityEngine.Rect graphRect, System.Single zoomLevel) (at <732b665a0eb44a80b9931c01ad63f8b8>:0) UnityEditor.Graphs.AnimatorControllerTool.b__141_11 () (at <732b665a0eb44a80b9931c01ad63f8b8>:0) UnityEditor.Graphs.AnimatorControllerTool.ScopedOnGUI (System.Action onGUIHandler) (at <732b665a0eb44a80b9931c01ad63f8b8>:0) UnityEditor.Graphs.AnimatorControllerTool.b__141_9 () (at <732b665a0eb44a80b9931c01ad63f8b8>: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 <06214b245dbb4d10a9cefd10639bb04e>:0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <06214b245dbb4d10a9cefd10639bb04e>:0) UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <06214b245dbb4d10a9cefd10639bb04e>:0) UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Boolean straightY, System.Single pixelsPerPoint, System.Exception& immediateException) (at <06214b245dbb4d10a9cefd10639bb04e>:0) Rethrow as ImmediateModeException UnityEngine.UIElements.UIR.RenderChain.Render (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection, UnityEngine.UIElements.PanelClearFlags clearFlags) (at <06214b245dbb4d10a9cefd10639bb04e>:0) UnityEngine.UIElements.UIRRepaintUpdater.DrawChain (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection) (at <06214b245dbb4d10a9cefd10639bb04e>:0) UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <06214b245dbb4d10a9cefd10639bb04e>:0) UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <06214b245dbb4d10a9cefd10639bb04e>:0) UnityEngine.UIElements.Panel.UpdateForRepaint () (at <06214b245dbb4d10a9cefd10639bb04e>:0) UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <06214b245dbb4d10a9cefd10639bb04e>:0) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <06214b245dbb4d10a9cefd10639bb04e>:0) UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <06214b245dbb4d10a9cefd10639bb04e>:0) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at :0)

e eu não sei de onde isso está vindo.

desde já agradeço.

3 respostas

Oi, João, tudo bem?

Quando você da clear no console quais erros ficam? A Unity da alguns erros internamente e mais te avisa que eles aconteceram pra você saber se é frequente do que é algo com o seu código e você precisa corrigir. Muitas vezes se não é frequente a gente ignora mesmo por ser algo momentâneo.

Olá, boa tarde

Então após da clear quase instantaneamente ele volta a esse erro sempre se multiplicando.

solução!

Tenta fechar e abrir a Unity depois dar alguns clear no console. Veja se isso resolve, porque esses erros parecem internos. Se ficar algum aí a gente olha um a um.