Demigiant / dotween

A Unity C# animation engine. HOTween v2
http://dotween.demigiant.com
Other
2.29k stars 344 forks source link

NullReferenceException Error when click the "Play" button in DOTween Animation component #646

Closed LudoArt closed 11 months ago

LudoArt commented 11 months ago

In the example scene "DOTweenAnimation_Basics", when I click the play button in DOTween Animation component, then receive an error message.

NullReferenceException: Object reference not set to an instance of an object DG.DOTweenEditor.EditorCompatibilityUtils.FindObjectsOfType (System.Type type, System.Boolean includeInactive) (at D:/DG/_Develop/UNITY3_CLASSES/_Holoville/DOTween/_DOTween.Assembly/DOTweenEditor/EditorCompatibilityUtils.cs:119) DG.DOTweenEditor.DOTweenEditorPreview.Start (System.Action onPreviewUpdated) (at D:/DG/_Develop/UNITY3_CLASSES/_Holoville/DOTween/_DOTween.Assembly/DOTweenEditor/DOTweenEditorPreview.cs:49) DG.DOTweenEditor.DOTweenPreviewManager.StartupGlobalPreview () (at Assets/ThirdPart/Demigiant/DOTweenPro/Editor/DOTweenPreviewManager.cs:146) DG.DOTweenEditor.DOTweenPreviewManager.PreviewGUI (DG.Tweening.DOTweenAnimation src) (at Assets/ThirdPart/Demigiant/DOTweenPro/Editor/DOTweenPreviewManager.cs:59) DG.DOTweenEditor.DOTweenAnimationInspector.OnInspectorGUI () (at Assets/ThirdPart/Demigiant/DOTweenPro/Editor/DOTweenAnimationInspector.cs:294) UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.b__0 () (at :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Unity version: 2019.4.33f1 DOTween version: v1.2.740[Release build] DOTweenPro version: v1.0.370

Demigiant commented 11 months ago

Ahoy,

Thank you for the report and sorry for this, I broke it during the last update that made the preview system compatible with Unity 2023 beta. I just published an update to the Asset Store that fixes it (v1.0.375)