Search Issue Tracker

Fixed in 2021.1.X

Votes

0

Found in [Package]

3.0.2-preview

Issue ID

1373744

Regression

No

"Failed instantiating Device Simulator legacy" error is thrown when Simulator view is opened with Localization Package installed

Package: Device Simulator

-

How to reproduce:
1. Create a new Unity project
2. Open the Package Manager (Window->Package Manager)
3. Install the Device Simulator Package (In the Package manager "+"->Add package from git URL..."->"com.unity.device-simulator"->Add)
4. Install the Localization Package (In the Package manager "+"->Add package from git URL..."->"com.unity.localization"->Add)
5. Open the Game view (Window->General->Game)
6. Switch the Game view to Simulator (top-right of the Game view "Game"->"Simulator")

Expected results: No errors are thrown
Actual results: "Failed instantiating Device Simulator legacy extension PackageLanguageMenu." error is thrown

Reproducible with: 3.0.0-preview, 3.0.2-preview (2019.4.32f1, 2020.3.21f1)
Not reproducible with: 2021.1.27f1, 2021.2.0b17, 2022.1.0a13
Could not test with: 2.2.4-preview (2019.4.32f1, 2020.3.2f1) and earlier because of the "NullReferenceError" when Simulator view is opened

Notes:
- The Device Simulator is not a package and is incorporated into the Editor starting 2021.1 version
- Full error:
Failed instantiating Device Simulator legacy extension PackageLanguageMenu.
UnityEngine.Debug:LogError (object)
Unity.DeviceSimulator.SimulatorExtensions:.ctor () (at Library/PackageCache/com.unity.device-simulator@3.0.2-preview/Editor/Scripting/DeviceSimulatorInterfaces.cs:47)
UnityEditor.EditorGUI/PopupCallbackInfo:SetEnumValueDelegate (object,string[],int)

  1. Resolution Note (fix version 2021.1):

    Issue doesn't exist in 2021.1 and above versions

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.