You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FIX: save and reset input action asset (ISX-1525, ISX-1483, ISX-1559) (#1727)
* work on copy of input actions asset (reset not working fix)
* dirty input actions editor window if changes were made
* show dialog on close input actions editor (WIP)
* fixed cancel closing input asset editor
* avoid changing asset name to (Clone) in the name
* fixed saving logic for multiple open assets
* only change header if needed
* PR refactor - reload asset from json instead of cloning it
* fixed reopening window after Cancel
varresult=EditorUtility.DisplayDialogComplex("Input Action Asset has been modified",$"Do you want to save the changes you made in:\n{m_AssetPath}\n\nYour changes will be lost if you don't save them.","Save","Cancel","Don't Save");
163
+
switch(result)
164
+
{
165
+
case0:// Save
166
+
SaveAsset(m_State.serializedObject,this);
167
+
break;
168
+
case1:// Cancel editor quit. (open new editor window with the edited asset)
169
+
ReshowEditorWindowWithUnsavedChanges();
170
+
break;
171
+
case2:// Don't save, quit - reload the old asset from the json to prevent the asset from being dirtied
0 commit comments