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

[Unity3D-sdk] Fix isVRSupported error in Unity 5 #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KorneiDontsov
Copy link

This commit fixes the compile errors:

  • Unity 5.0: Assets/PocoSDK/VRSupport.cs(42,44): error CS0234: The type or namespace name `VR' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference?
  • Unity 5.1-5.3: Assets/PocoSDK/VRSupport.cs(42,58): error CS0117: `UnityEngine.VR.VRSettings' does not contain a definition for `loadedDeviceName'

Property UnityEngine.VR.VRSettings.loadedDeviceName was released in Unity 5.4: https://docs.unity3d.com/540/Documentation/ScriptReference/VR.VRSettings-loadedDeviceName.html

This commit fixes the compile errors:
- Unity 5.0: ```Assets/PocoSDK/VRSupport.cs(42,44): error CS0234: The type or namespace name `VR' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference?```
- Unity 5.1-5.3: ```Assets/PocoSDK/VRSupport.cs(42,58): error CS0117: `UnityEngine.VR.VRSettings' does not contain a definition for `loadedDeviceName'```

Property UnityEngine.VR.VRSettings.loadedDeviceName was released in Unity 5.4: https://docs.unity3d.com/540/Documentation/ScriptReference/VR.VRSettings-loadedDeviceName.html
@KorneiDontsov KorneiDontsov force-pushed the fix/is-vr-supported-unity-5.0_5.3 branch from f8fda1d to 5dbaef7 Compare January 18, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant