Copyright © 2026 Unity Technologies
This is initially reported in the forum post: https://discussions.unity.com/t/unity-sprite-slice-button-opens-aseprite-crashes-it-enters-play-mode-and-burns-itself-into-my-screen-background/1732503
Repro:
1: Import an aseprite / PSB asset. If it's aseprite asset, set the import mode to Spritesheet, for PSB set SpriteMode to Merged
2: Select the sprite asset and open it in the Sprite Editor, and slice sprites
3: Without Applying changes in sprite editor after slicing, go into Play Mode
4: This will result in the Sprite Editor Window dialog box to confirm in applying changes
5: Selecting Apply will lead to the error message
While in this state the Project Window does not seem to be in a good state, as it does not seem to update itself when drag-dropping items from the filesystem into the Project window, even after invoking "Refresh" in the Project Window's context menu
Everything gets reverted into a good working state after an editor restart.
The error message is as follows
Exception: AssetDatabase.ForceReserializeAssets cannot be used when in play mode UnityEditor.AssetDatabase.ForceReserializeAssets (System.Collections.Generic.IEnumerable`1[T] assetPaths, UnityEditor.ForceReserializeAssetsOptions options) (at /Users/bokken/build/output/unity/unity/Modules/AssetDatabase/Editor/ScriptBindings/AssetDatabase.bindings.cs:1024) UnityEditor.U2D.Aseprite.AsepriteImporter.Apply () (at ./Library/PackageCache/com.unity.2d.aseprite@ab909e3e9b5f/Editor/AsepriteImporter.cs:1239) UnityEditor.U2D.Aseprite.AsepriteImporter.UnityEditor.U2D.Sprites.ISpriteEditorDataProvider.Apply () (at ./Library/PackageCache/com.unity.2d.aseprite@ab909e3e9b5f/Editor/AsepriteSpriteEditorDataProvider.cs:92) UnityEditor.U2D.Sprites.SpriteEditorWindow.DoApply () (at ./Library/PackageCache/com.unity.2d.sprite@f8e9941087c3/Editor/SpriteEditor/SpriteEditorWindow.cs:1163) UnityEditor.U2D.Sprites.SpriteEditorWindow.HandleApplyRevertDialog (System.String dialogTitle, System.String dialogContent) (at ./Library/PackageCache/com.unity.2d.sprite@f8e9941087c3/Editor/SpriteEditor/SpriteEditorWindow.cs:865) UnityEditor.U2D.Sprites.SpriteEditorWindow.RebuildCache () (at ./Library/PackageCache/com.unity.2d.sprite@f8e9941087c3/Editor/SpriteEditor/SpriteEditorWindow.cs:937) UnityEditor.U2D.Sprites.SpriteEditorWindow.OnPlayModeStateChanged (UnityEditor.PlayModeStateChange playModeState) (at ./Library/PackageCache/com.unity.2d.sprite@f8e9941087c3/Editor/SpriteEditor/SpriteEditorWindow.cs:838) UnityEditor.EditorApplication.Internal_PlayModeStateChanged (UnityEditor.PlayModeStateChange state) (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:595) UnityEngine.StackTraceUtility:ExtractStringFromExceptionInternal(Object, String&, String&) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:50)
This is reproducible on 6000.7.0a5, 6000.6.0b5, 6000.5.6f1.
This is not reproducible on 6000.3.19f1
Issues you vote on will appear here