- Home /
How to allow Undo on project assets created with an editor script?
I've developed an editor script for organizing my project assets. It takes a selected prefab in the project panel, creates a folder structure then moved the prefab into that structure. Most of this is achieved using the AssetDatabase library.
I want to include the ability to undo this operation, but am having trouble finding an undo operation that works in the project panel. It seems that Undo.RegisterUndo() and Undo.RegisterSceneUndo() both only work on hierarchy changes.
How can I get undos working when I make programmatic changes to the project assets?
Your answer
Follow this Question
Related Questions
Load an asset right as it is imported? 0 Answers
Override asset on import 0 Answers
How to change an object's name inside an asset file? 0 Answers
How to undo AssetDatabase.CreateAsset? 0 Answers
Get asset's Type given GUID 1 Answer