Skip to content

FIX: Change TMP text wrap to supported enum property instead of obsoleted boolean property#2442

Open
ekcoh wants to merge 4 commits into
developfrom
isxb-1800-tmp-obsoletion-fix
Open

FIX: Change TMP text wrap to supported enum property instead of obsoleted boolean property#2442
ekcoh wants to merge 4 commits into
developfrom
isxb-1800-tmp-obsoletion-fix

Conversation

@ekcoh

@ekcoh ekcoh commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Description

Change TMP text wrap to supported enum property instead of obsoleted boolean property

Testing status & QA

Verified it compiles. Need to check it works on min supported versions.

Overall Product Risks

  • Complexity: Minimal
  • Halo Effect: Minimal

Comments to 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.

@u-pr u-pr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great

The migration to the enum-based text wrapping property is a good cleanup, though one copy-paste error in the test scripts needs correction.

Additional observations

  • Assets/QA/Tests/Core Platform Menu/SceneMenu.cs:391 (medium) — It looks like a copy-paste typo was introduced here during the refactoring. The placeholder text (ph) has its wrapping mode set a second time, while the input text (txt) is left with default wrapping. This should configure txt instead.

🤖 Helpful? 👍/👎

@ekcoh ekcoh requested review from Pauliusd01 and ritamerkl June 26, 2026 06:42
@codecov-github-com

codecov-github-com Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

@@             Coverage Diff              @@
##           develop    #2442       +/-   ##
============================================
+ Coverage    58.58%   79.02%   +20.44%     
============================================
  Files          738      766       +28     
  Lines       135831   140408     +4577     
============================================
+ Hits         79570   110963    +31393     
+ Misses       56261    29445    -26816     
Flag Coverage Δ
inputsystem_MacOS_6000.0 5.31% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.0_project 77.49% <ø> (+0.23%) ⬆️
inputsystem_MacOS_6000.3 5.31% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.3_project 77.48% <ø> (+0.26%) ⬆️
inputsystem_MacOS_6000.4 5.32% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.4_project 77.49% <ø> (+0.26%) ⬆️
inputsystem_MacOS_6000.5 5.30% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.5_project 77.53% <ø> (+0.26%) ⬆️
inputsystem_MacOS_6000.6 5.30% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.6_project 77.53% <ø> (+0.26%) ⬆️
inputsystem_Ubuntu_6000.0 5.32% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.0_project 77.39% <ø> (+0.24%) ⬆️
inputsystem_Ubuntu_6000.3 5.32% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.3_project 77.39% <ø> (+0.26%) ⬆️
inputsystem_Ubuntu_6000.4 5.32% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.4_project 77.40% <ø> (+0.26%) ⬆️
inputsystem_Ubuntu_6000.5 5.31% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.5_project 77.44% <ø> (+0.27%) ⬆️
inputsystem_Ubuntu_6000.6 5.31% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.6_project 77.43% <ø> (+0.27%) ⬆️
inputsystem_Windows_6000.0 5.31% <ø> (-0.01%) ⬇️
inputsystem_Windows_6000.0_project 77.61% <ø> (+0.24%) ⬆️
inputsystem_Windows_6000.3 5.31% <ø> (-0.01%) ⬇️
inputsystem_Windows_6000.3_project 77.61% <ø> (+0.26%) ⬆️
inputsystem_Windows_6000.4 5.32% <ø> (-0.01%) ⬇️
inputsystem_Windows_6000.4_project 77.61% <ø> (+0.26%) ⬆️
inputsystem_Windows_6000.5 5.30% <ø> (-0.01%) ⬇️
inputsystem_Windows_6000.5_project 77.66% <ø> (+0.26%) ⬆️
inputsystem_Windows_6000.6 5.30% <ø> (-0.01%) ⬇️
inputsystem_Windows_6000.6_project 77.66% <ø> (+0.26%) ⬆️

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

see 279 files with indirect coverage changes

ℹ️ Need help interpreting these results?

- Fixed an incorrect ArraysHelper.HaveDuplicateReferences implementation that didn't use its arguments right [ISXB-1792] (https://github.com/Unity-Technologies/InputSystem/pull/2376)
- Fixed `InputAction.IsPressed`, `WasPressedThisFrame`, and `WasReleasedThisFrame` using a `ButtonControl`'s `pressPoint` when a binding also had an explicit `PressInteraction` with its own `pressPoint`, which could make those APIs disagree with the interaction's press and release behavior. Action-level press APIs now follow the interaction threshold when both are set explicitly.
- Fixed `IndexOutOfRangeException` in `InputDeviceBuilder` when connecting an HID gamepad whose report descriptor declares a hat switch with Report Size 8 (e.g. ESP32-BLE-Gamepad). The HID layer now anchors the hat's directional sub-controls to the hat's own byte instead of letting the layout system auto-allocate a fresh byte for each [UUM-143659](https://jira.unity3d.com/browse/UUM-143659).
- Fixed a compilation error with newer versions of TextMesh Pro where text wrapping via boolean property have been deprecated. ISXB-1800.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The scene menu is purely internal and not something we ship, I think we don't need a changelog entry

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good point, I remove it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Undo in f9c18ee

@Pauliusd01 Pauliusd01 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Didn't really check it live but seemed harmless so lgtm

@ekcoh

ekcoh commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

@Pauliusd01 I didn't check it much either, if CI is green across supported versions we should be good I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants