Hello i want to uninstall a module but how ?
Hello @Tassilo593 ,
If you’re referring to packages, here is how you can do it: Unity - Manual: Unity's Package Manager
I hope it helps!
I mean modules for exporting into other type of device files
like android : with this module i can export to apk
Hello @Tassilo593 ,
You can do it by following the next instructions: https://docs.unity3d.com/Manual/GettingStartedAddingEditorComponents.html
In the case of Android, the information on this page: Unity - Manual: Android environment setup is useful
Good luck with it!
I thought it was “Uninstall” not “Install” , like deleting the module
Bump
You can just delete the platform folder in PlaybackEngines folder within Unity installation.
We need to uninstall not delete. In my case the NDK failed to install and i need to reinstall it, deleting it doesn’t unregister it from unity hub modules.
I also need to uninstall android module for particular Unity editor installation. Any idea how to properly do it?
I need to reinstall the android module as unity complains that android build tools are not installed - even tho they are in place and were installed via UnityHub.
I ended up reinstalling the whole editor
In the root folder of your desired editor version, something like “C:\Program Files\Unity\Hub\Editor<YOUR_DESIRED_VERSION>” there is a file called “modules.json”. You need to go through that file and change the “selected” key to be false instead of true for all the things you want to install/reinstall. Afterwards, when you reopen Unity Hub, you should be able to select those modules for installation. I deleted the files manually before reinstalling, but based on how it works you may not need to. I will still suggest that you do the manual uninstall first as well for the sake of avoiding potential conflicts.
Here’s how the file looks like when you turn it into the pretty format, but using a text editor like N++, you can just find all occurrences of “selected” and then understand what you’re dealing with based on each result. That way you don’t have to paste the prettified format and change the one-liner with relative ease.
Good luck!
Tried this and worked like a charm. Tested with Unity Hub 3.0.1 & Unity Editor 2021.2.14f1
SOLVED! Thank you for the solution, @BoraMaker!
Just one addition: if you, like me, are trying to remove an android module, you have to remove the all modules folders relationed to android build player and set “selected” key as “false” in them all. I just solved my problem by this way.
Thank you so much kind person.
I finally reinstalled it because of your help.
Thank you
As of Unity Hub 3.2.0 this doesn’t seem to work any more for some reason. Bummer and absolutely bonkers that Unity doesn’t provide a way of uninstalling or repairing modules through their UI that they make you use.
Which version of the editor are you trying this with? For the older LTS version I’m still able to find and modify the modules.json file to provide the same functionality. My test version is 2020.3.35 for editor and 3.2.0 for Unity Hub to be precise but I didn’t test with 2021.x yet. Keep in mind that you will need to restart Unity Hub for the changes to take effect, and you will see the tag of the module in the Installs tab but once you select Add Modules for your desired editor version you should be able to check the box for the module and confirm your choice to force Unity Hub to reinstall that module. In case you missed something, here are some things to keep in mind:
1- You can see the location of your editor installation under Installs tab, directly below the version of the editor.
2- You need to have all instances of the editor closed before doing this for the sake of avoiding issues. Unity Hub will try to uninstall old files and folder, which cannot be completed while an editor is open.
3- You need to restart Unity Hub after changing the modules.json file. Unity Hub most likely only checks those files once when loading all the resources and just uses the information on memory when deciding what to show.
4- You can find and delete the folder containing the module manually but unless you change the entry in modules.json file you will not see any effects.
5- There might be multiple similar entries in modules.json that affect different stuff. Make sure you are changing the correct part of it. For easy navigation, you can try searching the file with a specific string used to describe the module you are interested in. Every bit of information including module name, description, download link, destination folder and some other stuff you can check in detail are listen in that file.
6- As a warning due to the sentence above, since every bit of information related to modules is actually coming from this file, and the file is used mostly like a read-only database for determining the state of the UI, any changes you make to the data will be permanent and might break stuff. Navigating the file isn’t complicated, but an extra character here or some deleted character there can cause issues.
@Yodzilla If you still cannot manage to make this work, please let me know along with additional details and I’ll look for the issue and a possible solution.
I followed all this but the hub still claims the modules are installed
just updated to latest hub and now works. Thanks!