How do you install XR Interaction Toolkit in Unity 2021.3? - unity3d

Neither of these work:
Installing by name: com.unity.xr.interaction.toolkit
Installing by registry preview.

I think the problem is with running the LTS version of Unity. As soon as I switched to 2022.1 (non-LTS) the package showed up without even manually typing the name.

Even though it is Unity's own native plugin but it is not listed in Window-PackageManager-UnityRegistry because it is still in preview. This works for pre-2021 releases. Click on Advanced Project Settings
Enable Preview Packages then confirm it:
Now back to Package Manager, XR Interaction Toolkit should be in the list:
You could also add the package with Add package from git url using com.unity.xr.interaction.toolkit

Related

unity exits when clicking the play button after adding MRTK packages

I have a problem in development of mixed reality app and there has been 2 days that I'm stuck.
My problem is that after adding packages of MRTK to the unity project, if I click the play button, the unity exits (closing) without any error massages or warning.
I tested two versions of unity (2020.3.32f1 and 2020.3.33f1) and both had the same problem.
I am using this link (MRTK document) and also this one Mixed Reality Feature Tool as a guide for configuration and adding the packages of MRTK to my project.
I have also tried two different versions of the packages i.e. (Mixed Reality Toolkit Foundation and Mixed Reality Toolkit Extensions both versions of 2.7.3 and 2.7.2 and for Mixed Reality OpenXR Plugin package I tried 1.4.0 and 1.3.1 versions).
I am using Visual Studio 2019 version 16.11.14
Inside Unity, I am choosing Universal Windows Platform from the Build Settings and I want to practice a little development of mixed reality applications, but I am stuck at the beginning and when ever I press the play button the unity exits (closed) without any warning or error.
Just for more information → I don't have Microsoft Hololens2, therefor I am considering to use Windows Mixed Reality simulator (Mixed Reality Portal).
I can't get what mistakes I am doing, please if you have any idea help me.
Thanks in advance.
There are many steps to configure a Unity Project for Mixed Reality. According to the description, it is hard to determine which step causes the issue. I have created a repository which is implemented with the necessary MR packages, and the configuration has been done. Feel free to pull the repo from https://github.com/sethdu0525/MR-Blank-Project. Please open it and click run to test.
If you still have this issue, you may need to have a clean installation of Unity 2020.3.33f1 (LTS), Visual Studio 2022 and make sure all the required components have been installed, including a comparatively new Windows SDK.
If you have a dump file for the crash, you may also share it and find support from Unity forum -- General Discussion - Unity Forum

Can't access unity package manager on ubuntu

I recently installed unity on my laptop, but I realized that I can't access some of the features like package manager and asset store directly from unity which is a bit annoying. I'll leave you a screen shot of it.
Edit: I forgot to mention that I am on kubuntu
Thank you for your help.
I don't use unity on Ubuntu but I think they took the same ui from the windows layout but they didn't implement the asset store feature on the Linux based version

Installed Unity without hub version and now unity hub won't allow me to add module

i installed unity 2019.3.10f without unity hub. Now i want to download modules such as android , sdk ,ndk and jdk (recommended ones) but hub does not give option to add module.
Unity version is latest same as hub but radio button is disabled
You can re-enable the option 'Add Modules':
Windows
1- go to C:\Users\{USER_NAME}\AppData\Roaming\UnityHub
MacOS
1- go to ~/Library/Application/Support/UnityHub
2- open editors.json file.
3- change "manual":true to "manual":false
4- kill the UnityHub and restart it. Note: Do not forget is stays in the tray on Windows.
So, i searched and found out that if you don't download unity from unity hub you cannot add modules from unity hub.
I didn't expected that but that's how it works.
So, i had to uninstall the old one and then install via unity hub.
The three dot option show modules only if its downloaded via unity hub.
In short if you want unity hub's help you would have to play by unity hub's rules. That might be inconvenient to some extent.
The manual re-enable only seems to work if you have just one version of the editor installed. If you have more than one, it attempts to install the modules for the version you actually downloaded with the hub. This can break things. At this point, unfortunately, it seems you must uninstall the version that is not allowing modules to be added, and reinstall it directly through the hub.
Here is simple trick, and it worked for me.

Rider does not seem to recognize Unity project

I have used Rider in the past on Unity projects, there was a button to start Unity Play mode from the IDE, and attach the debugger. I am using 2019.2 version of Unity and latest of Rider right now.
I should have some icons like in the documentation here https://www.jetbrains.com/help/rider/Unity.html#.
Nothing show up, and the best I get, is Rider proposing to add a custom configuration... Rider is correctly set as the IDE for Unity in Unity preferences. I do not understand what is going on.
You should go to 'package manager' of unity and upgrade 'Rider package'. Then you have to go to 'preferences' and should see new option appears in external script editor in external tool option select it and your are good to go.
Installed Rider again, while checking every delete checkbox (cache and settings and more), did not re-use the config from previous version (see https://rider-support.jetbrains.com/hc/en-us/community/posts/360005280960-Cannot-attach-Unity-debugger), and also made sure I have Unity support checked. The button is back.
For me (MacOS) it was due to not having mono installed. I opened up visual studio community once, and it prompted me to install some tools. After that I rebooted unity and rider, and everything worked properly.

Unity crashed when enabling Vuforia

My editor crashes when enabling "Vuforia Augmented Reality Supported" in XR settings. Following are the steps which I followed,
Steps to Repro:
1. Create a new project.
2. File > Build Settings > player settings > Player.
3. Enable "Vuforia Augmented Reality" checkbox from XR settings.
Environment:
Occurring on Windows 10
Unity version 2019.2.13
Demo Video:
What is the reason for the crashing Unity engine? I'm looking for a solution to my problem.
Since there is no answer yet I would like to post what I have done to solve this matter. As #kartik Shah said this could be a bug. So I checked previous unity bug reportings and finally, I have found this which is a kinda similar situation. So finally I came to conclusion this is a bug of current version 2019.2.13 and I did the following to reset unity editor into LTS(Latest Stable version) which is 2018.4.13,
Open unity hub -> Installs -> Add -> Select LTS version -> Select the modules that you want -> Click Done
This will download only the modules which you need to update and other modules remain as it is.
ps: If you don't have Unity Hub you can download it from here.