-
Notifications
You must be signed in to change notification settings - Fork 331
FIX: Address compilation warnings from Unity 6.4 and 6.5 #2295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
13c196a to
4b1105e
Compare
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr-agent |
PR Code Suggestions ✨Explore these optional code suggestions:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr-agent |
|||||||||
Codecov ReportAttention: Patch coverage is @@ Coverage Diff @@
## develop #2295 +/- ##
===========================================
- Coverage 77.95% 77.95% -0.01%
===========================================
Files 477 477
Lines 97416 97422 +6
===========================================
Hits 75943 75943
- Misses 21473 21479 +6 Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
| // results are displayed in the advanced object picker. | ||
| // Note: SearchFlags.Packages is not currently used and hides all results from packages. | ||
| internal static readonly SearchFlags PickerSearchFlags = SearchFlags.Sorted | SearchFlags.OpenPicker; | ||
| internal static readonly SearchFlags PickerSearchFlags = SearchFlags.OpenPicker; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SearchFlags.Sorted is not relevant for picker, confirmed with Sebastien Grenier over Slack
| const string k_AssetFolderSearchProviderId = "AssetsInputActionAssetSearchProvider"; | ||
| const string k_ProjectWideActionsSearchProviderId = "ProjectWideInputActionAssetSearchProvider"; | ||
|
|
||
| const string k_ProjectWideAssetIdentificationString = " [Project Wide Input Actions]"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This constant wasn't used anywhere
|
CC @Pauliusd01 for viz that this is happening, hopefully nothing changes in regards to functionality |
Description
Not much to add on top of the PR title. We've accumulated a few warnings that show up when the package is used with Unity 6.4 and 6.5. Basically, these classes of warnings:
(6.4) Related to GetInstanceId() -> GetEntityId() migration, this creates a fair bit of new ifdef split based on Unity version since we need to store different data here.
(6.4) Related to CreateAssetWithContent -> CreateAssetWithTextContent
(6.5) Related to SearchFlags.Sorted being deprecated now - I've migrated without ifdef too, since the Unity Search developers confirmed that this flag is not taken into account for the picker window. The window has its own sorting mechanism.
Testing status & QA
No feature change hopefully, compiles locally, waiting for CI now
Overall Product Risks
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.