Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to reference Valve.VR Namespace outside of SteamVR folder #707

Closed
The-Beekeeper opened this issue May 2, 2020 · 1 comment
Closed
Labels
Unity issue

Comments

@The-Beekeeper
Copy link

@The-Beekeeper The-Beekeeper commented May 2, 2020

Hello, it seems that for whatever reason I am unable to reference the Valve.VR class when the script lies outside of the SteamVR folder within Visual Studio 2017. But only within unity 2019.3.12f1, when I import my project into unity 2018.4.22f1 it works perfectly fine and I can reference the class whenever and wherever. I've been at a loss for a solution, and I would greatly appreciate any and all assistance. And as far as I can see it should work within Unity 2019.3, please correct me if I am wrong.

I am using SteamVR plugin version 2.5.0

Update: I updated to unity 2020.1.0b7 beta and installed the OpenVR plugin made for unity's new XR plugin system along with the SteamVR 2.6 beta. And now all my problems have disappeared, still have no idea why I had this problem in the first place.

Using unity 2019.3 within the SteamVR/InteractionSystem/Sample folder.
image

Using unity 2019.3 in a scripts folder outside of the SteamVR folder.
image

Using unity 2018.4 in a scripts folder outside the SteamVR folder.
image

@The-Beekeeper The-Beekeeper changed the title Visual studio 2017 unable to reference Valve.VR class outside of SteamVR folder in unity 2019.3 Visual studio 2017 unable to reference Valve.VR Namespace outside of SteamVR folder in unity 2019.3 May 3, 2020
@zite
Copy link
Collaborator

@zite zite commented May 4, 2020

Yeah, strangely this is a Unity 2019.3.12 bug. It works fine in 2019.3.11. I'd recommend downgrading or waiting for a fix as 2020+ is still in beta/alpha. https://unity3d.com/get-unity/download/archive

@zite zite closed this as completed May 4, 2020
@zite zite added the Unity issue label May 4, 2020
@zite zite pinned this issue May 4, 2020
@zite zite changed the title Visual studio 2017 unable to reference Valve.VR Namespace outside of SteamVR folder in unity 2019.3 Unable to reference Valve.VR Namespace outside of SteamVR folder Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unity issue
Projects
None yet
Development

No branches or pull requests

2 participants