Search Issue Tracker

Fixed

Fixed in 6000.0.46f1, 6000.1.0b14, 6000.2.0a7

Votes

1

Found in

6000.0.32f1

6000.1.0b8

6000.2.0a4

Issue ID

UUM-95357

Regression

No

Unity upgrader fails to upgrade script when different language module is used

-

Reproduction steps:
1. In the Unity Hub, go to “Installs“
2. Press the gear icon on the Unity Editor version and select “Add modules“
3. Scroll down to “Language packs (preview)“, select “简体中文“ and press “Install”
4. Once installed, create a new Universal 2D project on the Unity Editor version that the language module was installed
5. Open the project
6. In the Preferences window (“Edit → Preferences…“), select the “Languages” tab
7. Enable the “Editor Language (Experimental)“ parameter
8. Enable the “Localize compiler messages“
9. Change the “Editor language“ parameter to the installed “简体中文 (Experimental)“
10. Close the Unity Editor
11. Create a new Universal 2D project
12. Observe the Console when the project opens

Expected result: No errors appear
Actual result: "Library\PackageCache\com.unity.2d.pixel-perfect\Editor\Converter\U2DToURPPixelPerfectConverter.cs(26,65): error CS0234: 命名空间“UnityEngine.Experimental.Rendering.Universal”中不存在类型或命名空间名“PixelPerfectCamera”(是否缺少程序集引用?)" error is thrown"

Reproducible with: 2023.2.0a16, 6000.0.32f1, 6000.1.0a9
Not reproducible with: 2021.3.47f1, 2022.3.55f1, 2023.2.0a15

Reproducible on: Windows 10 (22H2), Windows 11 (25H2) (reporter’s environment)
Not reproducible on: No other environments tested

Notes:
* “Assertion failed on expression: '!(o->TestHideFlag(Object::kDontSaveInEditor) && (options & kAllowDontSaveObjectsToBePersistent) == 0)'
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)“ error appears after changing the language from “English“ to “简体中文 (Experimental)“
* Creating a new Universal 2D project on a newer version than the one with the language module added, when the language has already been switched to “简体中文 (Experimental)“, still reproduces the errors (for example, you add the “简体中文“ language module on 6000.0.30f1, then create a project on that version, open the project, switch the language to “简体中文 (Experimental)“, then close the project and create a new Universal 2D project on 6000.0.32f1 - the errors still reproduce)
* Changing back to "English" fixes the issue and makes the errors disappear

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.