DDFS Posted December 14, 2021 Posted December 14, 2021 Hi,I'm testing to do very simple scene for VR (HTC Vive) with Unity. My first example worked for windows (.exe with SteamVR) but I would like to package the scene to do an apk for the headset. But I can't do this because I encountered issues.ps : I installed Android studio (and hope it's well configured) and I used 2020.3.24f1 version of Unity.I show you below some screenshot of my configuration for Unity. The documentation of Vive mentionned a special package to obtain apk for their headset : https://hub.vive.com/storage/docs/en-us/UnitySdk.html ;I tried to install it (https://assetstore.unity.com/packages/tools/integration/vive-wave-sdk-165873) : But when I did this with android platform, I obtain these messages :"Assets\WaveVR\Scripts\EventSystem\WaveVR_InputModuleManager.cs(331,3): warning CS0618: 'GazeInputModule' is obsolete: 'This script is obsoleted, please use WaveVR_GazeInputModule instead.' Assets\WaveVR\Scripts\EventSystem\WaveVR_InputModuleManager.cs(331,51): warning CS0618: 'GazeInputModule' is obsolete: 'This script is obsoleted, please use WaveVR_GazeInputModule instead.' Assets\WaveVR\Scripts\WaveVR.cs(105,4): warning CS0618: 'Assert.raiseExceptions' is obsolete: 'Future versions of Unity are expected to always throw exceptions and not have this field.' Assets\WaveVR\Scripts\WaveVR_Init.cs(115,31): warning CS0612: 'WaveVR_Utils.Event.DEVICE_ROLE_CHANGED' is obsolete Assets\WaveVR\Scripts\WaveVR_Init.cs(155,30): warning CS0612: 'WaveVR_Utils.Event.DEVICE_ROLE_CHANGED' is obsolete Assets\WaveVR\Editor\WaveVR_Preferences.cs(31,3): warning CS0618: 'PreferenceItem' is obsolete: '[PreferenceItem] is deprecated. Use [SettingsProvider] instead.' Assets\WaveVR\Editor\WaveVR_Settings.cs(81,10): warning CS0618: 'PlayerSettings.GetVirtualRealitySupported(BuildTargetGroup)' is obsolete: 'This API is deprecated and will be removed prior to shipping 2020.2' Assets\WaveVR\Editor\WaveVR_Settings.cs(90,3): warning CS0618: 'PlayerSettings.SetVirtualRealitySupported(BuildTargetGroup, bool)' is obsolete: 'This API is deprecated and will be removed prior to shipping 2020.2' Assets\WaveVR\Editor\WaveVR_Settings.cs(99,25): error CS0117: 'PlayerSettings' does not contain a definition for 'GetVirtualRealitySDKs' Assets\WaveVR\Editor\WaveVR_Settings.cs(108,18): error CS0117: 'PlayerSettings' does not contain a definition for 'SetVirtualRealitySDKs' Assets\WaveVR\Editor\BuildCheck.cs(305,11): warning CS0618: 'PlayerSettings.GetVirtualRealitySupported(BuildTargetGroup)' is obsolete: 'This API is deprecated and will be removed prior to shipping 2020.2' Assets\WaveVR\Editor\BuildCheck.cs(314,26): error CS0117: 'PlayerSettings' does not contain a definition for 'GetVirtualRealitySDKs' Assets\WaveVR\Editor\WaveVR_ShowIndicatorEditor.cs(11,24): warning CS0414: The field 'WaveVR_ShowIndicatorEditor.LOG_TAG' is assigned but its value is never used"I'm not able to find help or solution on the web, please could you help to configure Unity in order to do apk for HTC Vive ?Thanks in advance for return.
VIVE_chengnay Posted December 15, 2021 Posted December 15, 2021 @DDFS You are not able to install and run apk on HTC Vive headset.
DDFS Posted December 16, 2021 Author Posted December 16, 2021 (edited) @chengnay Indeed, but I forgot to mention that my post deals with the Focus3 headset, sorry. Edited December 16, 2021 by DDFS
VIVE_chengnay Posted December 16, 2021 Posted December 16, 2021 @DDFS You can refer to this guideline for building apk and install on Focus 3 headset. I see that your plugin is kinda old, 3.2.0. Let me know if you have questions, thanks!
DDFS Posted December 19, 2021 Author Posted December 19, 2021 Hi @chengnay I only found this one : https://assetstore.unity.com/packages/tools/integration/vive-wave-sdk-165873 Please, is a newest proposed ? I didn't find it. By configuring this in Unity https://pasteall.org/media/a/3/a34a7b31d4b5087f99b3125b56487de5.jpg should I obtain the wright package ? Thanks for return.
VIVE_chengnay Posted December 20, 2021 Posted December 20, 2021 @DDFS After adding scope registry, you can go to Window>Package Manager>My Registries (dropdown list from top left corner). Let me know if you still have problem accessing the latest Wave SDK. 1
DDFS Posted December 22, 2021 Author Posted December 22, 2021 Thanks @chengnay I activated all these packages : https://pasteall.org/media/e/3/e3e59b3866c36a546082b692ff87190c.jpg Is that correct ?
VIVE_chengnay Posted December 22, 2021 Posted December 22, 2021 @DDFS Yes, that's correct, and are you able to build apk and run on your device? 1
DDFS Posted December 22, 2021 Author Posted December 22, 2021 (edited) @chengnayI will try it today and I'll let you inform Edited December 22, 2021 by DDFS
DDFS Posted December 22, 2021 Author Posted December 22, 2021 @chengnay It seems to work, I was able to create an .apk with an empty scene (test). I will have to try now with a complete scene. Just an issue appeared with JDK ("you are missing the recommended JDK") but I solved it thanks to Internet. Many thanks for your return.
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