Forum rules - please read before posting.

Null ref with Change Timescale action

I check Use Time Curve and the rest of the ActionList goes missing, along with a Null ref:

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorGUIUtility.DrawCurveSwatchInternal (Rect position, UnityEngine.AnimationCurve curve, UnityEngine.AnimationCurve curve2, UnityEditor.SerializedProperty property, UnityEditor.SerializedProperty property2, Color color, Color bgColor, Boolean useCurveRanges, Rect curveRanges)
UnityEditor.EditorGUIUtility.DrawCurveSwatch (Rect position, UnityEngine.AnimationCurve curve, UnityEditor.SerializedProperty property, Color color, Color bgColor)
UnityEditor.EditorGUI.DoCurveField (Rect position, Int32 id, UnityEngine.AnimationCurve value, Color color, Rect ranges, UnityEditor.SerializedProperty property)
UnityEditor.EditorGUI.CurveField (Rect position, UnityEngine.GUIContent label, UnityEngine.AnimationCurve value)
UnityEditor.EditorGUI.CurveField (Rect position, System.String label, UnityEngine.AnimationCurve value)
UnityEditor.EditorGUILayout.CurveField (System.String label, UnityEngine.AnimationCurve value, UnityEngine.GUILayoutOption[] options)
AC.ActionTimescale.ShowGUI () (at Assets/AdventureCreator/Scripts/Actions/ActionTimescale.cs:83)
AC.Action.ShowGUI (System.Collections.Generic.List`1 parameters) (at Assets/AdventureCreator/Scripts/ActionList/Action.cs:82)
AC.ActionListEditor.DrawSharedElements () (at Assets/AdventureCreator/Scripts/ActionList/Editor/ActionListEditor.cs:201)
CutsceneEditor.OnInspectorGUI () (at Assets/AdventureCreator/Scripts/Logic/Editor/CutsceneEditor.cs:37)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean forceDirty, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect, Boolean eyeDropperDirty)
UnityEditor.DockArea:OnGUI()

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.