Задать вопрос
@Gera01
Unity, С# и больше ничего.

Как исправить эту ошибку с TimeLine?

При попытке записи дорожки в timeline выскакивает ошибка (запись не включается):
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorWindow.RefreshStylesAfterExternalEvent () (at <68af50843d0a45398c92799647332ec2>:0)
UnityEditor.AnimationMode.StartAnimationRecording () (at <68af50843d0a45398c92799647332ec2>:0)
UnityEditor.Timeline.WindowState.set_recording (System.Boolean value) (at Library/PackageCache/com.unity.timeline@1.2.17/Editor/State/WindowState.cs:215)
UnityEditor.Timeline.WindowState.ArmForRecord (UnityEngine.Timeline.TrackAsset track) (at Library/PackageCache/com.unity.timeline@1.2.17/Editor/State/WindowState.cs:868)
UnityEditor.Timeline.TimelineTrackGUI.DrawRecordButton (UnityEngine.Rect rect, UnityEditor.Timeline.WindowState state) (at Library/PackageCache/com.unity.timeline@1.2.17/Editor/treeview/TimelineTrackGUI.cs:664)
UnityEditor.Timeline.TimelineTrackGUI.DrawTrackHeader (UnityEngine.Rect trackHeaderRect, UnityEditor.Timeline.WindowState state) (at Library/PackageCache/com.unity.timeline@1.2.17/Editor/treeview/TimelineTrackGUI.cs:482)
UnityEditor.Timeline.TimelineTrackGUI.Draw (UnityEngine.Rect headerRect, UnityEngine.Rect contentRect, UnityEditor.Timeline.WindowState state) (at Library/PackageCache/com.unity.timeline@1.2.17/Editor/treeview/TimelineTrackGUI.cs:322)
UnityEditor.Timeline.TimelineTreeView.OnRowGUI (UnityEngine.Rect rowRect, UnityEditor.IMGUI.Controls.TreeViewItem item, System.Int32 row, System.Boolean selected, System.Boolean focused) (at Library/PackageCache/com.unity.timeline@1.2.17/Editor/treeview/TimelineTreeView.cs:185)
UnityEditor.IMGUI.Controls.TreeViewController.DoItemGUI (UnityEditor.IMGUI.Controls.TreeViewItem item, System.Int32 row, System.Single rowWidth, System.Boolean hasFocus) (at <68af50843d0a45398c92799647332ec2>:0)
UnityEditor.IMGUI.Controls.TreeViewController.IterateVisibleItems (System.Int32 firstRow, System.Int32 numVisibleRows, System.Single rowWidth, System.Boolean hasFocus) (at <68af50843d0a45398c92799647332ec2>:0)
UnityEditor.IMGUI.Controls.TreeViewController.OnGUI (UnityEngine.Rect rect, System.Int32 keyboardControlID) (at <68af50843d0a45398c92799647332ec2>:0)
UnityEditor.Timeline.TimelineTreeViewGUI.OnGUI (UnityEngine.Rect rect) (at Library/PackageCache/com.unity.timeline@1.2.17/Editor/treeview/TimelineTreeViewGUI.cs:154)
UnityEditor.Timeline.TimelineWindow.DrawTracksGUI (UnityEngine.Rect clientRect, UnityEditor.Timeline.TimelineModeGUIState trackState) (at Library/PackageCache/com.unity.timeline@1.2.17/Editor/Window/TimelineWindow_TrackGui.cs:177)
UnityEditor.Timeline.TimelineWindow.TracksGUI (UnityEngine.Rect clientRect, UnityEditor.Timeline.WindowState state, UnityEditor.Timeline.TimelineModeGUIState trackState) (at Library/PackageCache/com.unity.timeline@1.2.17/Editor/Window/TimelineWindow_TrackGui.cs:47)
UnityEditor.Timeline.TimelineWindow.TrackViewsGUI () (at Library/PackageCache/com.unity.timeline@1.2.17/Editor/Window/TimelineWindow_Gui.cs:198)
UnityEditor.Timeline.TimelineWindow.SequencerGUI () (at Library/PackageCache/com.unity.timeline@1.2.17/Editor/Window/TimelineWindow_Gui.cs:295)
UnityEditor.Timeline.TimelineWindow.DoLayout () (at Library/PackageCache/com.unity.timeline@1.2.17/Editor/Window/TimelineWindow_Gui.cs:156)
UnityEditor.Timeline.TimelineWindow.OnGUI () (at Library/PackageCache/com.unity.timeline@1.2.17/Editor/Window/TimelineWindow.cs:238)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <9577ac7a62ef43179789031239ba8798>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <9577ac7a62ef43179789031239ba8798>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <68af50843d0a45398c92799647332ec2>:0)
UnityEditor.HostView.Invoke (System.String methodName) (at <68af50843d0a45398c92799647332ec2>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <68af50843d0a45398c92799647332ec2>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <68af50843d0a45398c92799647332ec2>:0)
UnityEditor.DockArea.OldOnGUI () (at <68af50843d0a45398c92799647332ec2>: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 <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <56474b4aa5ee4be8a067345b2ec36d81>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <819de1aa368e45faa4f78e26c97c62b0>:0)


Как решить эту проблему?
  • Вопрос задан
  • 133 просмотра
Подписаться 1 Простой 14 комментариев
Решения вопроса 1
@Gera01 Автор вопроса
Unity, С# и больше ничего.
Решение найдено. Нужно перейти на более раньнюю версию unity. Но как мне помниться таймлайны и cinemachine начали работать вместе с 19, так что помните об этом если вы работаете с ними вместе.
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы