Conversation
…a where 'd_' defines the dark icon.
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## master #656 +/- ##
=======================================
Coverage 36.05% 36.06%
=======================================
Files 277 277
Lines 34909 34918 +9
=======================================
+ Hits 12588 12593 +5
- Misses 22321 22325 +4
Flags with carried forward coverage won't be shown. Click here to find out more. |
@unity-kristinn, it should fixed with 9acc831.
@marnadeau I updated the code so the new styling is applied on 6.5+. Helpbox still has 32px icon in all the previous versions of the Editor. |
|
/test_plan |
Test Plan
Summary of Changes & Risk AssessmentSummary of ChangesThis PR standardizes ProBuilder's icon loading mechanism to align with Unity's internal Risk Assessment
Test ScenariosFunctional Testing
Regression Testing
Edge Cases
💡 This test plan updates automatically when 🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr |
|
[Yamato] Validate - probuilder - 6000.5 - macos failure is unrelated to this PR. Wrench needs to be updated. |



Purpose of this PR
When using the Editor Light theme, some icons pulled are from the Dark theme. The affected icons are reference throught the
[Icon(icon-path)]attribute so they follow the rule where file paths should be named as following:Probuilder handles the loading and the differentiation between both skins for most icon, by using its own
IconUtility.GetIcon()but it follow differents rules:I've updated the method so we can override for the specific case where the targeted icon is also being used with the
IconAttribute. It's the case for one of the icon where it's in an attribute, but also being loaded through the API.Before:

After:

Links
Jira:
UUM-133531
UUM-136903
Comments to Reviewers
[List known issues, planned work, provide any extra context for your code.]