FIX: InputSystem warnings displayed with Unity editor 6000.6 version#2381
FIX: InputSystem warnings displayed with Unity editor 6000.6 version#2381josepmariapujol-unity merged 7 commits intodevelopfrom
Conversation
|
/crc |
|
/review |
Packages/com.unity.inputsystem/InputSystem/Utilities/InternedString.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
This review identified a few new points regarding the recent serialization changes:
- Functional Issue (High):
FourCCwill lose its data during serialization because its private field is not marked with[SerializeField]. - Verification Needed (Low): Ensure base classes of
AxisControlare serializable to prevent data loss after deserialization. - Best Practice (Low): Marking
m_StateBuffersinInputStateWindowas[NonSerialized]is a good practice as Unity does not support jagged array serialization.
Several other points (regarding InternedString, InputStateBuffers, and UITests) were excluded as they were already covered by existing comments.
🤖 Helpful? 👍/👎
Packages/com.unity.inputsystem/InputSystem/Editor/Internal/InputStateWindow.cs
Show resolved
Hide resolved
|
/review |
|
/crc |
There was a problem hiding this comment.
This review identified a critical architectural issue regarding the serialization of core input classes. While the PR aims to improve serializability for various components, marking the base InputControl class as [Serializable] introduces significant risks related to unmanaged memory and object initialization that could lead to runtime crashes.
🤖 Helpful? 👍/👎
PR Reviewer Guide 🔍(Review updated until commit bed62b2)Here are some key observations to aid the review process:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr |
|
Persistent review updated to latest commit bed62b2 |
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## develop #2381 +/- ##
===========================================
- Coverage 77.90% 77.89% -0.02%
===========================================
Files 476 481 +5
Lines 97613 97691 +78
===========================================
+ Hits 76048 76098 +50
- Misses 21565 21593 +28 Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
There seems to be one more warning left over:
|
Yes! I am not sure how to fix that. AI reviews are confusing me a lot. |
ekcoh
left a comment
There was a problem hiding this comment.
Thanks for addressing these @josepmariapujol-unity!
Description
InputSystem warnings displayed with Unity editor
6000.6version.Some of the warnings:

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