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
Here are some key observations to aid the review process:
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
Small, localized change adding a save callback and a couple of fields, but it needs a quick behavior/UX sanity check across editor states.
🏅 Score: 86
Change is straightforward and likely correct, but introduces duplicated save logic and an unused field that should be validated/cleaned up before merging.
The new save path duplicates the existing save logic but with different gating (it does not check InputEditorUserSettings.autoSaveInputActionAssets), so confirm this is intended (manual save vs autosave) and consider reusing a shared save helper to avoid future divergence.
privatevoidValidateAndSaveAsset(InputActionAssetasset){// This code should be cleaned up once we migrate the InputControl stuff from ImGUI completely.// Since at that point it stops being a separate window that steals focus.// (See case ISXB-1713)if(!InputEditorUserSettings.autoSaveInputActionAssets||m_View.IsControlSchemeViewActive()){return;}ProjectWideActionsAsset.Verify(asset);// Ignore verification result for saveEditorHelpers.SaveAsset(AssetDatabase.GetAssetPath(asset),asset.ToJson());}privatevoidOnSaveAssetRequested(){varasset=GetAsset();if(asset==null)return;if(m_View!=null&&m_View.IsControlSchemeViewActive())return;ProjectWideActionsAsset.Verify(asset);EditorHelpers.SaveAsset(AssetDatabase.GetAssetPath(asset),asset.ToJson());}
EditorHelpers.SaveAsset(AssetDatabase.GetAssetPath(asset), ...) assumes a valid asset path; if GetAsset() can ever return a non-persisted/in-memory asset, ensure the save call handles empty/invalid paths gracefully (or guard with string.IsNullOrEmpty).
The new m_IsProjectSettings field is assigned but not used in the shown diff; if it’s not used elsewhere, it should be removed to avoid confusion (or used to control whether the save UI is available/visible).
The control-schemes view guard makes sense for auto-save (focus-stealing), but it will also block an explicit user-initiated save. Remove the IsControlSchemeViewActive() early return here so the user can always save from the toolbar.
private void OnSaveAssetRequested()
{
var asset = GetAsset();
if (asset == null)
return;
- if (m_View != null && m_View.IsControlSchemeViewActive())- return;+
ProjectWideActionsAsset.Verify(asset);
EditorHelpers.SaveAsset(AssetDatabase.GetAssetPath(asset), asset.ToJson());
}
Suggestion importance[1-10]: 7
__
Why: The m_View.IsControlSchemeViewActive() check is a workaround for ImGUI focus issues during auto-save. Including it in OnSaveAssetRequested (triggered by a manual user action) can lead to a confusing UX where the Save button click is ignored without any feedback.
Medium
More suggestions
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Screen.Recording.2026-02-26.at.14.40.29.mov
Testing status & QA
Double-check what is shown in the video making sure Save Asset/Auto-Save works.
Overall Product Risks
Please rate the potential complexity and halo effect from low to high for the reviewers. Note down potential risks to specific Editor branches if any.
Comments to reviewers
Please describe any additional information such as what to focus on, or historical info for the reviewers.
Checklist
Before review:
Changed,Fixed,Addedsections.Area_CanDoX,Area_CanDoX_EvenIfYIsTheCase,Area_WhenIDoX_AndYHappens_ThisIsTheResult.During merge:
NEW: ___.FIX: ___.DOCS: ___.CHANGE: ___.RELEASE: 1.1.0-preview.3.