DDD_KK Posted October 20, 2021 Posted October 20, 2021 I imported SteamVR Plugin and Vive Hand Tracking SDK from the following URL into an empty project I created in Unity Editor 2020.3.19f1. Vive Hand Tracking SDK 1.0.0 : https://hub.vive.com/storage/tracking/unity/setup.html SteamVR Plugin 2.7.3 (sdk 1.14.15) : https://assetstore.unity.com/packages/tools/integration/steamvr-plugin-32647 A When I opened the sample project(Assets/Samples/VIVE Hand Tracking SDK/1.0.0/Sample/Sample.unity) and enter Play Mode it worked fine, but when I exited Play Mode, Unity crashed. Please let me know if there is a way to exit Play Mode normally. Editor used Unity Editor 2020.3.19f1 SDK used Vive Hand Tracking SDK 1.0.0 : https://hub.vive.com/storage/tracking/unity/setup.html SteamVR Plugin 2.7.3 (sdk 1.14.15) : https://assetstore.unity.com/packages/tools/integration/steamvr-plugin-32647 Operation procedure Connect the VIVE Pro and launch SteamVR from Steam. Create an empty project in Unity Editor 2020.3.19f1. Import SteamVR Plugin 2.7.3. Import Vive Hand Tracking SDK 1.0.0. Follow the instructions in the window to complete the settings. Open the sample project(Assets/Samples/VIVE Hand Tracking SDK/1.0.0/Sample/Sample.unity) and enter Play Mode. Exit Play Mode after confirming that virtual hands are displayed. Expected result Exit play mode normally. Actual results Unity Editor crashes.
DDD_KK Posted October 20, 2021 Author Posted October 20, 2021 I'll add my PC specs. OS : Windows 10 Pro 64-bit (10.0, Build 19042) (19041.vb_release.191206-1406) CPU : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 CPUs), ~3.2GHz Memory : 32768MB RAM GPU : NVIDIA GeForce GTX 1060 6GB
zzy Posted October 21, 2021 Posted October 21, 2021 Hi @DDD_KK Thanks for the report. Have you tried to use UnityXR instead of SteamVR plugin? We recommend to use Unity 2020 with UnityXR. We have an editor script WindowsPlayModeMonitor.cs, which is used to solve this problem when using UnityXR. However the script is not enabled when you don't have the UnityXR package. You can try to copy the script in your project and remove the #if clause at beginning of the file.
DDD_KK Posted October 25, 2021 Author Posted October 25, 2021 (edited) On 10/21/2021 at 7:21 PM, zzy said: Hi @DDD_KK Thanks for the report. Have you tried to use UnityXR instead of SteamVR plugin? We recommend to use Unity 2020 with UnityXR. We have an editor script WindowsPlayModeMonitor.cs, which is used to solve this problem when using UnityXR. However the script is not enabled when you don't have the UnityXR package. You can try to copy the script in your project and remove the #if clause at beginning of the file. Thank you very much for your response. I want to use HandTracking and VIVE Tracker in the same time, does UnityXR support these?. Edited October 25, 2021 by DDD_KK
zzy Posted October 25, 2021 Posted October 25, 2021 Hi @DDD_KK I'm sure if UnityXR supports tracker. You can try to copy the WindowsPlayModeMonitor.cs editor script to your project and remove the #if clause in the file. That should fix your problem.
DDD_KK Posted October 25, 2021 Author Posted October 25, 2021 Hi @zzy I followed the "Getting started" instructions in the following URL to install OpenXR. https://docs.unity3d.com/Packages/com.unity.xr.openxr@1.2/manual/index.html However, I haven't been able to try your suggestion because VIVE pro is still in SteamVR Home when I enter Play mode. Do you know of any solutions?
zzy Posted October 25, 2021 Posted October 25, 2021 Hi @DDD_KK You are using OpenXR, not OpenVR. If you are using SteamVR Unity Plugin v2.7.3 on Unity 2020, it should install OpenVR support for Unity XR automatically. See it's release note here: https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.7.3
DDD_KK Posted October 25, 2021 Author Posted October 25, 2021 (edited) Hi @zzy I misunderstood that I remove SteamVR Plugin and install OpenXR. Am I correct in assuming that I remove the #if clause at beginning of WindowsPlayModeMonitor.cs from the unity project state of my initial post? That means I don't have to delete SteamVR Plugin. Edited October 25, 2021 by DDD_KK
zzy Posted October 25, 2021 Posted October 25, 2021 Hi @DDD_KK Yes, for initial state of your project, you need to copy the script and remove the #if clause. If you don't want to change the script, another solution is to install Unity XR packages (while keeping SteamVR plugin). SteamVR will setup UnityXR for you.
DDD_KK Posted October 26, 2021 Author Posted October 26, 2021 Hi @zzy This problem was resolved thanks to your support. Thanks for taking the time. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now