Closed alamboley closed 3 years ago
@alamboley May I know which sample scene you are referring to? Wave SDK or VIU? I just tried VIU's example scene (UGUI and Teleport), both works fine.
Hi @chengnay thanks for the update. It's VIU samples scenes. Having Development Build and Script Debugging ticked on, give me this error.
I just ticked both, and Teleport scene still works fine. What else did I miss?
What else you have imported in your project? VIU (latest version?)? Wave SDK?
Yes I use Wave SDK 3.1.6 and latest VIU release.
The scenes work fine: I can trigger / drag and drop / teleport, but they trigger this error in Unity console.
How can I do "I grab it from the Unity console with remote on"?? When does the error occur? Whenever you press any button? Or just once when you enter the scene?
I use "adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG" But I couldn't see the error log.
Does this help? I added Full Log (Developer Mode Only) in the option
Could I clarify the reproduce steps,
In step 3, will Unity ask for Android device? I tested on Windows 10 PC, I couldn't connect with Focus plus.
Notice that you don't need at all to play scene in Unity Editor, it may just remove any previous log.
@alamboley After cowork with WaveSDK RD, I will give you a temporary fix. This fix will be included in next WaveSDK release.
In WaveVR_ButtonList.cs,
line 83,
Add new to HmdButtons, DominantButtons and NonDominantButtons.
Let me know if you still have issue, thanks!
Thanks @chengnay for the code update. Now I don't have any errors but unfortunately teleport / trigger don't work anymore. Also I can't see when something is pressed/touched on the virtual controller.
I will check with WaveSDK RD and get back to you ASAP.
@alamboley Could you try not to use Unity remote? WaveSDK RD will need more time to find the root cause.
Note: This issue will still exist even if you unchecked Development Build & Script Debugging. You might need to create a new project.
UPDATE: Another temporary fix in VIU,
In Assets\HTC.UnityPlugin\VRModule\Modules\WaveVRModule.cs,
line 306, comment these lines as shown in the image below.
Above temporary fix will cause no input effect on controller model.
Hi @chengnay I don't use Unity remote : it's just the Unity console which is in remote mode.
If I comment those lines, I've the same problem than previously: Now I don't have any errors but unfortunately teleport / trigger don't work anymore. Also I can't see when something is pressed/touched on the virtual controller.
It seems your result is different from mine, I can still teleport and trigger. Just I can't see when something is pressed/touched on the virtual controller.
I am still looking into this issue, please be patient, thanks!
@alamboley Here is the solution to your issue.
Please also include the solution to WaveVR_ButtonList.cs. Let me know if you still have issue, thanks!
@chengnay thanks for the update. Could you provide me the code in plain text? Images aren't programmer friendly moreover with the #if statement I don't have any completion.
hi @chengnay I added your fix, no more error and controllers work fine! Thanks :)
@chengnay thanks for the update. Could you provide me the code in plain text? Images aren't programmer friendly moreover with the #if statement I don't have any completion.
Sorry about that! It is because when I pasted the code here in plain text, some of the code will not show properly, such as < WaveVR_ButtonList >.
Glad to hear that your issue is resolved. Cheers!
I use Wave SDK 3.1.6 and Unity 2019.2.21f1.
When running any samples, I've this error (I grab it from the Unity console with remote on):
If I change
for (int i = 0; i < eList.Count; i++)
tofor (int i = 0; i < eList?.Count; i++)
no more error, but I can't teleport for example anymore.