- Home /
Can't find Device Simulator in Package Manager or its Preferences in 2021.1
I have pre-release packages enabled in Unity 2021.1 but unable to find Device Simulator in the package manager.
It is in fact visible in the Game Window but I can't see its preferences.
I simply want to specify a directory with custom device profiles. Thanks
I experience the same issue since updating to Unity 2021.1.7. On recommendation from Unity support I updated from 2019.3.0, as Unity started crashing when selecting the Device Simulator tab. Now, as you describe @fragmentzero , the new built-in Device Simulator has a very limited control panel, compared to the previous pre-release package version. Furthermore, something like Debug.Log(Application.platform)
returns WindowsEditor
for me and not the OS it is supposed to simulate, as the previous version did.
I still haven't found any solution. It seems that now I can add a device profile from the interface so I am not blocked per se. I still would like to have a common directory with all my device profiles and point the simulator to it.
Answer by Breyyne · Jul 05, 2021 at 01:38 PM
@fragmentzero In order for you to see Device Manager in the Package Manager, You to check "Enable Preview Packages" in Project Settings>Package Manager.
In order to add a device, You will need to make a text file as per https://docs.unity3d.com/Packages/com.unity.device-simulator@3.0/manual/DefiningCustomDevices.html
Best of luck.
Thanks for the reply. But as you see in the original screenshots, the device manager doesn't show up even with preview (or pre-release as they are called now) packages.
Based on the error message I get when manually adding Device Simulator (com.unity.device-simulator), looks like its not compatible with tech stream version 2021.1. [Package Manager Window] Cannot perform upm operation: Cannot find a version of package [com.unity.device-simulator] compatible with this Unity version (2021.1.0f1). [NotFound].
So that must be it then.
Answer by $$anonymous$$ · Jul 30, 2021 at 02:07 AM
The Device Simulator is now part of the Editor and is accessible from the Game window.
Answer by LAKSHAYMAVIA · Oct 26, 2021 at 02:14 PM
Package Manager -> Click and hold setting icon -> Advance setting -> enable Preview package then Unity Registery.
Answer by DadNapper · Nov 02, 2021 at 05:55 AM
If you're more of a visual learner, here is a video: https://www.youtube.com/watch?v=uokF9CmUs9c