KybernetikGames / animancer

Documentation for the Animancer Unity Plugin.
68 stars 8 forks source link

TransitionDrawer exception and then it breaks my game object inspector #114

Closed Bonfyre90 closed 3 years ago

Bonfyre90 commented 3 years ago

Environment

Description

Occasionally when I'm using the TransitionDrawer I get the following exceptions then everything breaks on that GameObject until I restart Unity.

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Animancer.Editor.TimeRuler.DoEventsGUI (Animancer.Editor.EventSequenceDrawer+Context context, System.Single& addEventNormalizedTime) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/TimeRuler.cs:323)
Animancer.Editor.TimeRuler.DoGUI (UnityEngine.Rect area, Animancer.Editor.EventSequenceDrawer+Context context, System.Single& addEventNormalizedTime) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/TimeRuler.cs:167)
Animancer.Editor.EventSequenceDrawer.DoHeaderGUI (UnityEngine.Rect& area, UnityEngine.GUIContent label, Animancer.Editor.EventSequenceDrawer+Context context) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/EventSequenceDrawer.cs:326)
Animancer.Editor.EventSequenceDrawer.OnGUI (UnityEngine.Rect area, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/EventSequenceDrawer.cs:285)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.EditorGUI.PropertyFieldInternal (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.TransitionDrawer.DoPropertyGUI (UnityEngine.Rect& area, UnityEditor.SerializedProperty rootProperty, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/TransitionDrawer.cs:365)
Animancer.Editor.TransitionDrawer.DoChildPropertiesGUI (UnityEngine.Rect area, System.Single headerHeight, UnityEditor.SerializedProperty property) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/TransitionDrawer.cs:321)
Animancer.Editor.TransitionDrawer.OnGUI (UnityEngine.Rect area, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/TransitionDrawer.cs:108)
Animancer.ManualMixerState+Transition+Drawer.OnGUI (UnityEngine.Rect area, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at Assets/Plugins/Animancer/Internal/Mixer States/ManualMixerState.cs:563)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.PropertyHandler.OnGUILayout (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.Editor.DoDrawDefaultInspector (UnityEditor.SerializedObject obj) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.Editor.DoDrawDefaultInspector () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.Editor.DrawDefaultInspector () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
ExternalPropertyAttributes.Editor.ExternalCustomInspector.OnInspectorGUI () (at Assets/External/FlatKit/Utils/EditorAttributes/Editor/ExternalCustomInspector.cs:43)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <0fdaf67e8e744beea25e77915c19f81b>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

image

Reproduction

Steps to reproduce the bug:

  1. Use the transition drawer in 2020 Unity
  2. I'm not sure what the exactly replication parameters are
KybernetikGames commented 3 years ago

I fiddled around with it a bit, but I'm not seeing any exceptions.

Can you narrow down what you're doing to cause it?

Bonfyre90 commented 3 years ago

Tried to reproduce the issue again, I didn't get the second error this time. I'll keep trying to figure out how to reproduce it, but honestly not sure I will be able to. Here was my result:

animancer_issue

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Animancer.Editor.TimeRuler.DoEventsGUI (Animancer.Editor.EventSequenceDrawer+Context context, System.Single& addEventNormalizedTime) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/TimeRuler.cs:323)
Animancer.Editor.TimeRuler.DoGUI (UnityEngine.Rect area, Animancer.Editor.EventSequenceDrawer+Context context, System.Single& addEventNormalizedTime) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/TimeRuler.cs:167)
Animancer.Editor.EventSequenceDrawer.DoHeaderGUI (UnityEngine.Rect& area, UnityEngine.GUIContent label, Animancer.Editor.EventSequenceDrawer+Context context) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/EventSequenceDrawer.cs:326)
Animancer.Editor.EventSequenceDrawer.OnGUI (UnityEngine.Rect area, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/EventSequenceDrawer.cs:285)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.EditorGUI.PropertyFieldInternal (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.TransitionDrawer.DoPropertyGUI (UnityEngine.Rect& area, UnityEditor.SerializedProperty rootProperty, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/TransitionDrawer.cs:365)
Animancer.Editor.TransitionDrawer.DoChildPropertiesGUI (UnityEngine.Rect area, System.Single headerHeight, UnityEditor.SerializedProperty property) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/TransitionDrawer.cs:321)
Animancer.Editor.TransitionDrawer.OnGUI (UnityEngine.Rect area, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at Assets/Plugins/Animancer/Internal/Editor/Inspector/TransitionDrawer.cs:108)
Animancer.ManualMixerState+Transition+Drawer.OnGUI (UnityEngine.Rect area, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at Assets/Plugins/Animancer/Internal/Mixer States/ManualMixerState.cs:563)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.EditorGUI.PropertyFieldInternal (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property, System.Boolean includeChildren) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.TransitionPreviewWindow+Inspector.DoTransitionGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.Inspector.cs:192)
Animancer.Editor.TransitionPreviewWindow+Inspector.DoPreviewInspectorGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.Inspector.cs:139)
Animancer.Editor.TransitionPreviewWindow+Inspector.DoInspectorGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.Inspector.cs:113)
Animancer.Editor.TransitionPreviewWindow.OnGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.cs:175)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.OldOnGUI () (at <7587a42c8322471cbc42b27c9b8eab3c>: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 <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <6ddf8eac3856492ab1b8cf42618915cc>:0)
Bonfyre90 commented 3 years ago

I think that is the root cause issue actually. It happens when you change animation transition and then change to another animation and try change it there.

Bonfyre90 commented 3 years ago

Now every time I start Unity I get these errors and my states now have no parameters showing:

image

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_miniButton () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.AnimancerGUI..cctor () (at Assets/Plugins/Animancer/Internal/Editor/AnimancerGUI.cs:93)
Rethrow as TypeInitializationException: The type initializer for 'Animancer.Editor.AnimancerGUI' threw an exception.
Animancer.Editor.TransitionPreviewWindow.get_Icon () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.cs:40)
Animancer.Editor.TransitionPreviewWindow.OnEnable () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.cs:133)
UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
UnityEditor.WindowLayout:LoadDefaultWindowPreferences()

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_miniButton () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.AnimancerGUI..cctor () (at Assets/Plugins/Animancer/Internal/Editor/AnimancerGUI.cs:93)
Rethrow as TypeInitializationException: The type initializer for 'Animancer.Editor.AnimancerGUI' threw an exception.
Animancer.Editor.TransitionPreviewWindow+Scene.DoPreviewGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.Scene.cs:488)
Animancer.Editor.TransitionPreviewWindow.OnGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.cs:174)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.OldOnGUI () (at <7587a42c8322471cbc42b27c9b8eab3c>: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 <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

NullReferenceException: Object reference not set to an instance of an object
Animancer.Editor.TransitionPreviewWindow+Scene.DrawFloor () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.Scene.cs:930)
Animancer.Editor.TransitionPreviewWindow+Scene.DoPreviewGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.Scene.cs:461)
Animancer.Editor.TransitionPreviewWindow.OnGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.cs:174)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.OldOnGUI () (at <7587a42c8322471cbc42b27c9b8eab3c>: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 <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <16a864d8d57443bb82561171867685b1>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <6ddf8eac3856492ab1b8cf42618915cc>:0)

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_miniButton () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.AnimancerGUI..cctor () (at Assets/Plugins/Animancer/Internal/Editor/AnimancerGUI.cs:93)
Rethrow as TypeInitializationException: The type initializer for 'Animancer.Editor.AnimancerGUI' threw an exception.
Animancer.Editor.TransitionPreviewWindow+Scene.DoPreviewGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.Scene.cs:488)
Animancer.Editor.TransitionPreviewWindow.OnGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.cs:174)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.OldOnGUI () (at <7587a42c8322471cbc42b27c9b8eab3c>: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 <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

NullReferenceException: Object reference not set to an instance of an object
Animancer.Editor.TransitionPreviewWindow+Scene.DrawFloor () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.Scene.cs:930)
Animancer.Editor.TransitionPreviewWindow+Scene.DoPreviewGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.Scene.cs:461)
Animancer.Editor.TransitionPreviewWindow.OnGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.cs:174)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.OldOnGUI () (at <7587a42c8322471cbc42b27c9b8eab3c>: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 <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <16a864d8d57443bb82561171867685b1>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <6ddf8eac3856492ab1b8cf42618915cc>:0)

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_miniButton () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.AnimancerGUI..cctor () (at Assets/Plugins/Animancer/Internal/Editor/AnimancerGUI.cs:93)
Rethrow as TypeInitializationException: The type initializer for 'Animancer.Editor.AnimancerGUI' threw an exception.
Animancer.Editor.TransitionPreviewWindow+Scene.DoPreviewGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.Scene.cs:488)
Animancer.Editor.TransitionPreviewWindow.OnGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.cs:174)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.OldOnGUI () (at <7587a42c8322471cbc42b27c9b8eab3c>: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 <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

NullReferenceException: Object reference not set to an instance of an object
Animancer.Editor.TransitionPreviewWindow+Scene.DrawFloor () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.Scene.cs:930)
Animancer.Editor.TransitionPreviewWindow+Scene.DoPreviewGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.Scene.cs:461)
Animancer.Editor.TransitionPreviewWindow.OnGUI () (at Assets/Plugins/Animancer/Internal/Editor/Transition Preview Window/TransitionPreviewWindow.cs:174)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.DockArea.OldOnGUI () (at <7587a42c8322471cbc42b27c9b8eab3c>: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 <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <16a864d8d57443bb82561171867685b1>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <6ddf8eac3856492ab1b8cf42618915cc>:0)

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_miniButton () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.AnimancerGUI..cctor () (at Assets/Plugins/Animancer/Internal/Editor/AnimancerGUI.cs:93)
Rethrow as TypeInitializationException: The type initializer for 'Animancer.Editor.AnimancerGUI' threw an exception.
Animancer.Editor.ReadMe+Editor.OnHeaderGUI () (at Assets/Plugins/Animancer/Internal/Editor/ReadMe.cs:120)
UnityEditor.Editor.DrawHeader () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.UIElements.EditorElement.DrawEditorLargeHeader (UnityEditor.Editor[] editors, System.Boolean& wasVisible) (at <0fdaf67e8e744beea25e77915c19f81b>:0)
UnityEditor.UIElements.EditorElement.DrawEditorHeader (UnityEditor.Editor[] editors, UnityEngine.Object target, System.Boolean& wasVisible) (at <0fdaf67e8e744beea25e77915c19f81b>:0)
UnityEditor.UIElements.EditorElement.HeaderOnGUI () (at <0fdaf67e8e744beea25e77915c19f81b>: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 <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_miniButton () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.AnimancerGUI..cctor () (at Assets/Plugins/Animancer/Internal/Editor/AnimancerGUI.cs:93)
Rethrow as TypeInitializationException: The type initializer for 'Animancer.Editor.AnimancerGUI' threw an exception.
Animancer.Editor.ReadMe+Editor.DoSpace () (at Assets/Plugins/Animancer/Internal/Editor/ReadMe.cs:211)
Animancer.Editor.ReadMe+Editor.OnInspectorGUI () (at Assets/Plugins/Animancer/Internal/Editor/ReadMe.cs:142)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <0fdaf67e8e744beea25e77915c19f81b>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_miniButton () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.AnimancerGUI..cctor () (at Assets/Plugins/Animancer/Internal/Editor/AnimancerGUI.cs:93)
Rethrow as TypeInitializationException: The type initializer for 'Animancer.Editor.AnimancerGUI' threw an exception.
Animancer.Editor.ReadMe+Editor.OnHeaderGUI () (at Assets/Plugins/Animancer/Internal/Editor/ReadMe.cs:120)
UnityEditor.Editor.DrawHeader () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.UIElements.EditorElement.DrawEditorLargeHeader (UnityEditor.Editor[] editors, System.Boolean& wasVisible) (at <0fdaf67e8e744beea25e77915c19f81b>:0)
UnityEditor.UIElements.EditorElement.DrawEditorHeader (UnityEditor.Editor[] editors, UnityEngine.Object target, System.Boolean& wasVisible) (at <0fdaf67e8e744beea25e77915c19f81b>:0)
UnityEditor.UIElements.EditorElement.HeaderOnGUI () (at <0fdaf67e8e744beea25e77915c19f81b>: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 <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_miniButton () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.AnimancerGUI..cctor () (at Assets/Plugins/Animancer/Internal/Editor/AnimancerGUI.cs:93)
Rethrow as TypeInitializationException: The type initializer for 'Animancer.Editor.AnimancerGUI' threw an exception.
Animancer.Editor.ReadMe+Editor.OnHeaderGUI () (at Assets/Plugins/Animancer/Internal/Editor/ReadMe.cs:120)
UnityEditor.Editor.DrawHeader () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.UIElements.EditorElement.DrawEditorLargeHeader (UnityEditor.Editor[] editors, System.Boolean& wasVisible) (at <0fdaf67e8e744beea25e77915c19f81b>:0)
UnityEditor.UIElements.EditorElement.DrawEditorHeader (UnityEditor.Editor[] editors, UnityEngine.Object target, System.Boolean& wasVisible) (at <0fdaf67e8e744beea25e77915c19f81b>:0)
UnityEditor.UIElements.EditorElement.HeaderOnGUI () (at <0fdaf67e8e744beea25e77915c19f81b>: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 <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <16a864d8d57443bb82561171867685b1>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <6ddf8eac3856492ab1b8cf42618915cc>:0)

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_miniButton () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.AnimancerGUI..cctor () (at Assets/Plugins/Animancer/Internal/Editor/AnimancerGUI.cs:93)
Rethrow as TypeInitializationException: The type initializer for 'Animancer.Editor.AnimancerGUI' threw an exception.
Animancer.Editor.ReadMe+Editor.DoSpace () (at Assets/Plugins/Animancer/Internal/Editor/ReadMe.cs:211)
Animancer.Editor.ReadMe+Editor.OnInspectorGUI () (at Assets/Plugins/Animancer/Internal/Editor/ReadMe.cs:142)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <0fdaf67e8e744beea25e77915c19f81b>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_miniButton () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.AnimancerGUI..cctor () (at Assets/Plugins/Animancer/Internal/Editor/AnimancerGUI.cs:93)
Rethrow as TypeInitializationException: The type initializer for 'Animancer.Editor.AnimancerGUI' threw an exception.
Animancer.Editor.ReadMe+Editor.OnHeaderGUI () (at Assets/Plugins/Animancer/Internal/Editor/ReadMe.cs:120)
UnityEditor.Editor.DrawHeader () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.UIElements.EditorElement.DrawEditorLargeHeader (UnityEditor.Editor[] editors, System.Boolean& wasVisible) (at <0fdaf67e8e744beea25e77915c19f81b>:0)
UnityEditor.UIElements.EditorElement.DrawEditorHeader (UnityEditor.Editor[] editors, UnityEngine.Object target, System.Boolean& wasVisible) (at <0fdaf67e8e744beea25e77915c19f81b>:0)
UnityEditor.UIElements.EditorElement.HeaderOnGUI () (at <0fdaf67e8e744beea25e77915c19f81b>: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 <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_miniButton () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
Animancer.Editor.AnimancerGUI..cctor () (at Assets/Plugins/Animancer/Internal/Editor/AnimancerGUI.cs:93)
Rethrow as TypeInitializationException: The type initializer for 'Animancer.Editor.AnimancerGUI' threw an exception.
Animancer.Editor.ReadMe+Editor.OnHeaderGUI () (at Assets/Plugins/Animancer/Internal/Editor/ReadMe.cs:120)
UnityEditor.Editor.DrawHeader () (at <7587a42c8322471cbc42b27c9b8eab3c>:0)
UnityEditor.UIElements.EditorElement.DrawEditorLargeHeader (UnityEditor.Editor[] editors, System.Boolean& wasVisible) (at <0fdaf67e8e744beea25e77915c19f81b>:0)
UnityEditor.UIElements.EditorElement.DrawEditorHeader (UnityEditor.Editor[] editors, UnityEngine.Object target, System.Boolean& wasVisible) (at <0fdaf67e8e744beea25e77915c19f81b>:0)
UnityEditor.UIElements.EditorElement.HeaderOnGUI () (at <0fdaf67e8e744beea25e77915c19f81b>: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 <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <16a864d8d57443bb82561171867685b1>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <16a864d8d57443bb82561171867685b1>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <6ddf8eac3856492ab1b8cf42618915cc>:0)

I had to reinstall Animancer to resolve it.

KybernetikGames commented 3 years ago

I think I have the solutions to both problems.

In EventSequenceDrawer.cs:

// Replace
_SelectedEvent = Mathf.Min(_SelectedEvent, Times.Count - 1);
// With
_SelectedEvent = Mathf.Min(_SelectedEvent, Mathf.Max(Times.Count - 1, 0));

And in AnimancerGUI.cs replace the MiniButton field with:

private static GUIStyle _MiniButton;

/// <summary>A more compact <see cref="EditorStyles.miniButton"/> with a fixed size as a tiny box.</summary>
public static GUIStyle MiniButton
{
    get
    {
        if (_MiniButton == null)
        {
            _MiniButton = new GUIStyle(EditorStyles.miniButton)
            {
                margin = new RectOffset(0, 0, 2, 0),
                padding = new RectOffset(2, 3, 2, 2),
                alignment = TextAnchor.MiddleCenter,
                fixedHeight = LineHeight,
                fixedWidth = LineHeight - 1
            };
        }

        return _MiniButton;
    }
}
Bonfyre90 commented 3 years ago

I haven't had the issue since I updated it, I will let you know if it happens again soon.

KybernetikGames commented 3 years ago

To replicate the issue: go to any transition, untick the End Time checkbox, then drag the End Event's marker on the timeline.

Bonfyre90 commented 3 years ago

Confirmed no longer happening.

KybernetikGames commented 3 years ago

Animancer v7.0 is now available with these fixes in it.