Skip to content

Conversation

@K-Tone
Copy link
Collaborator

@K-Tone K-Tone commented Nov 14, 2025

Description

Please fill this section with a description what the pull request is trying to address and what changes were made.

Testing status & QA

Please describe the testing already done by you and what testing you request/recommend QA to execute. If you used or created any testing project please link them here too for QA.

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.

  • Complexity:
  • Halo Effect:

Comments to reviewers

Please describe any additional information such as what to focus on, or historical info for the reviewers.

Checklist

Before review:

  • Changelog entry added.
    • Explains the change in Changed, Fixed, Added sections.
    • For API change contains an example snippet and/or migration example.
    • JIRA ticket linked, example (case %%). If it is a private issue, just add the case ID without a link.
    • Jira port for the next release set as "Resolved".
  • Tests added/changed, if applicable.
    • Functional tests Area_CanDoX, Area_CanDoX_EvenIfYIsTheCase, Area_WhenIDoX_AndYHappens_ThisIsTheResult.
    • Performance tests.
    • Integration tests.
  • Docs for new/changed API's.
    • Xmldoc cross references are set correctly.
    • Added explanation how the API works.
    • Usage code examples added.
    • The manual is updated, if needed.

During merge:

  • Commit message for squash-merge is prefixed with one of the list:
    • NEW: ___.
    • FIX: ___.
    • DOCS: ___.
    • CHANGE: ___.
    • RELEASE: 1.1.0-preview.3.
@K-Tone K-Tone marked this pull request as ready for review November 14, 2025 14:43
@u-pr-agent
Copy link
Contributor

u-pr-agent bot commented Nov 14, 2025

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪

The PR touches many files, but the changes are highly repetitive and consist of removing obsolete IMGUI code paths, making the review straightforward.
🏅 Score: 95

The PR provides a great and systematic cleanup by deprecating and removing old IMGUI code. A minor typo was found.
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Typo

There's a typo in the constant string variable tolltip. It should be tooltip.

private const string tolltip = "Determine which axis 'wins' if both are actuated at the same time. "
  • Update review

🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr-agent

@K-Tone K-Tone changed the title Anthony/deprecate useimguiforassets CHANGE: Deprecate useIMGUIEditorForAssets Nov 14, 2025
Comment on lines 215 to 224
private const string tolltip = "Determine which axis 'wins' if both are actuated at the same time. "
+ "If 'Neither' is selected, the result is 0 (or, more precisely, "
+ "the midpoint between minValue and maxValue).");

public override void OnGUI()
{
if (!InputSystem.settings.useIMGUIEditorForAssets)
return;

target.whichSideWins = (AxisComposite.WhichSideWins)EditorGUILayout.EnumPopup(m_WhichAxisWinsLabel, target.whichSideWins);
}
+ "the midpoint between minValue and maxValue).";

public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
var modeField = new EnumField(m_WhichAxisWinsLabel.text, target.whichSideWins)
var modeField = new EnumField(label, target.whichSideWins)
{
tooltip = m_WhichAxisWinsLabel.tooltip
tooltip = tolltip
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: The constant name tolltip contains a typo. It should be corrected to tooltip. For better clarity and to avoid confusion with the VisualElement.tooltip property, consider renaming it to tooltipText. [general, importance: 6]

Suggested change
private const string tolltip = "Determine which axis 'wins' if both are actuated at the same time. "
+ "If 'Neither' is selected, the result is 0 (or, more precisely, "
+ "the midpoint between minValue and maxValue).");
public override void OnGUI()
{
if (!InputSystem.settings.useIMGUIEditorForAssets)
return;
target.whichSideWins = (AxisComposite.WhichSideWins)EditorGUILayout.EnumPopup(m_WhichAxisWinsLabel, target.whichSideWins);
}
+ "the midpoint between minValue and maxValue).";
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
var modeField = new EnumField(m_WhichAxisWinsLabel.text, target.whichSideWins)
var modeField = new EnumField(label, target.whichSideWins)
{
tooltip = m_WhichAxisWinsLabel.tooltip
tooltip = tolltip
};
private const string tooltipText = "Determine which axis 'wins' if both are actuated at the same time. "
+ "If 'Neither' is selected, the result is 0 (or, more precisely, "
+ "the midpoint between minValue and maxValue).";
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
var modeField = new EnumField(label, target.whichSideWins)
{
tooltip = tooltipText
};

🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr-agent

Comment on lines +195 to 204
private const string tooltip = "How to synthesize a Vector2 from the inputs. Digital "
+ "treats part bindings as buttons (on/off) whereas Analog preserves "
+ "floating-point magnitudes as read from controls.");

public override void OnGUI()
{
if (!InputSystem.settings.useIMGUIEditorForAssets)
return;

target.mode = (Vector2Composite.Mode)EditorGUILayout.EnumPopup(m_ModeLabel, target.mode);
}
+ "floating-point magnitudes as read from controls.";

public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
var modeField = new EnumField(m_ModeLabel.text, target.mode)
var modeField = new EnumField(label, target.mode)
{
tooltip = m_ModeLabel.tooltip
tooltip = tooltip
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: The assignment tooltip = tooltip is confusing as it relies on C# scoping rules to differentiate between the class constant and the VisualElement property. To improve readability and consistency with other parts of the PR, rename the tooltip constant to tooltipText. [general, importance: 6]

Suggested change
private const string tooltip = "How to synthesize a Vector2 from the inputs. Digital "
+ "treats part bindings as buttons (on/off) whereas Analog preserves "
+ "floating-point magnitudes as read from controls.");
public override void OnGUI()
{
if (!InputSystem.settings.useIMGUIEditorForAssets)
return;
target.mode = (Vector2Composite.Mode)EditorGUILayout.EnumPopup(m_ModeLabel, target.mode);
}
+ "floating-point magnitudes as read from controls.";
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
var modeField = new EnumField(m_ModeLabel.text, target.mode)
var modeField = new EnumField(label, target.mode)
{
tooltip = m_ModeLabel.tooltip
tooltip = tooltip
};
private const string tooltipText = "How to synthesize a Vector2 from the inputs. Digital "
+ "treats part bindings as buttons (on/off) whereas Analog preserves "
+ "floating-point magnitudes as read from controls.";
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
var modeField = new EnumField(label, target.mode)
{
tooltip = tooltipText
};

🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr-agent

@codecov-github-com
Copy link

codecov-github-com bot commented Nov 14, 2025

Codecov Report

Attention: Patch coverage is 38.09524% with 13 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...nputSystem/Editor/AssetEditor/ParameterListView.cs 50.00% 5 Missing ⚠️
...putSystem/Actions/Interactions/PressInteraction.cs 0.00% 2 Missing ⚠️
...em/InputSystem/Actions/Composites/AxisComposite.cs 0.00% 1 Missing ⚠️
...InputSystem/Actions/Composites/Vector2Composite.cs 0.00% 1 Missing ⚠️
...InputSystem/Actions/Composites/Vector3Composite.cs 0.00% 1 Missing ⚠️
...System/Actions/Interactions/MultiTapInteraction.cs 0.00% 1 Missing ⚠️
...tsystem/InputSystem/Editor/InputParameterEditor.cs 0.00% 1 Missing ⚠️
...com.unity.inputsystem/InputSystem/InputSettings.cs 75.00% 1 Missing ⚠️
@@ Coverage Diff @@ ## develop #2283 +/- ## =========================================== + Coverage 76.81% 76.93% +0.11%  =========================================== Files 476 476 Lines 88726 88717 -9 =========================================== + Hits 68155 68250 +95  + Misses 20571 20467 -104 
Flag Coverage Δ
inputsystem_MacOS_2022.3 5.54% <0.00%> (+0.15%) ⬆️
inputsystem_MacOS_2022.3_project 75.44% <14.28%> (+0.75%) ⬆️
inputsystem_MacOS_6000.0 5.32% <0.00%> (+0.14%) ⬆️
inputsystem_MacOS_6000.0_project 77.36% <38.09%> (+0.76%) ⬆️
inputsystem_MacOS_6000.2 5.32% <0.00%> (+0.14%) ⬆️
inputsystem_MacOS_6000.2_project 77.36% <38.09%> (+0.76%) ⬆️
inputsystem_MacOS_6000.3 5.32% <0.00%> (+0.14%) ⬆️
inputsystem_MacOS_6000.3_project 77.36% <38.09%> (+0.76%) ⬆️
inputsystem_MacOS_6000.4 5.33% <0.00%> (+0.14%) ⬆️
inputsystem_MacOS_6000.4_project 77.37% <38.09%> (+0.76%) ⬆️
inputsystem_MacOS_6000.5 5.33% <0.00%> (+0.14%) ⬆️
inputsystem_MacOS_6000.5_project 77.37% <38.09%> (+0.76%) ⬆️
inputsystem_Ubuntu_2022.3 5.55% <0.00%> (+0.15%) ⬆️
inputsystem_Ubuntu_2022.3_project 75.24% <14.28%> (+0.75%) ⬆️
inputsystem_Ubuntu_6000.0 5.33% <0.00%> (+0.14%) ⬆️
inputsystem_Ubuntu_6000.0_project 77.17% <38.09%> (+0.76%) ⬆️
inputsystem_Ubuntu_6000.2 5.33% <0.00%> (+0.14%) ⬆️
inputsystem_Ubuntu_6000.2_project 77.17% <38.09%> (+0.77%) ⬆️
inputsystem_Ubuntu_6000.3 5.33% <0.00%> (+0.14%) ⬆️
inputsystem_Ubuntu_6000.3_project 77.16% <38.09%> (+0.75%) ⬆️
inputsystem_Ubuntu_6000.4 5.33% <0.00%> (+0.14%) ⬆️
inputsystem_Ubuntu_6000.4_project 77.18% <38.09%> (+0.76%) ⬆️
inputsystem_Ubuntu_6000.5 5.33% <0.00%> (+0.14%) ⬆️
inputsystem_Ubuntu_6000.5_project 77.18% <38.09%> (+0.76%) ⬆️
inputsystem_Windows_2022.3 5.54% <0.00%> (+0.15%) ⬆️
inputsystem_Windows_2022.3_project 75.57% <14.28%> (+0.75%) ⬆️
inputsystem_Windows_6000.0 5.32% <0.00%> (+0.14%) ⬆️
inputsystem_Windows_6000.0_project 77.49% <38.09%> (+0.76%) ⬆️
inputsystem_Windows_6000.2 5.32% <0.00%> (+0.14%) ⬆️
inputsystem_Windows_6000.2_project 77.49% <38.09%> (+0.76%) ⬆️
inputsystem_Windows_6000.3 5.32% <0.00%> (+0.14%) ⬆️
inputsystem_Windows_6000.3_project 77.49% <38.09%> (+0.76%) ⬆️
inputsystem_Windows_6000.4 5.33% <0.00%> (+0.14%) ⬆️
inputsystem_Windows_6000.4_project 77.49% <38.09%> (+0.76%) ⬆️
inputsystem_Windows_6000.5 5.33% <0.00%> (+0.14%) ⬆️
inputsystem_Windows_6000.5_project 77.49% <38.09%> (+0.76%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
Assets/Tests/InputSystem/CoreTests_Actions.cs 97.78% <ø> (+<0.01%) ⬆️
Assets/Tests/InputSystem/CoreTests_Analytics.cs 99.03% <ø> (-0.26%) ⬇️
...nputSystem/Actions/Interactions/HoldInteraction.cs 75.60% <ø> (+8.21%) ⬆️
...tSystem/Actions/Interactions/SlowTapInteraction.cs 58.62% <ø> (+8.62%) ⬆️
...InputSystem/Actions/Interactions/TapInteraction.cs 75.00% <ø> (+7.65%) ⬆️
...ystem/Controls/Processors/AxisDeadzoneProcessor.cs 55.55% <ø> (+8.68%) ⬆️
...stem/Controls/Processors/StickDeadzoneProcessor.cs 65.71% <ø> (+8.21%) ⬆️
...InputSystem/Editor/Analytics/InputBuildAnalytic.cs 77.52% <ø> (-0.74%) ⬇️
...Editor/UITKAssetEditor/InputActionsEditorWindow.cs 50.00% <ø> (+0.68%) ⬆️
...em/InputSystem/Actions/Composites/AxisComposite.cs 79.06% <0.00%> (+8.23%) ⬆️
... and 7 more

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants