Forum Discussion
Anonymous
9 years agoGetting a crash with OVRHapticsClip in Unity
Hey everybody!
Not sure what I'm doing wrong, unless it doesn't like the clips I've tried, but I get a crash every time I try to run my game with the line:
myHapticsClip = new OVRHapticsClip(hapClip, 0);
I have tried a few clips now but it just goes non responsive when I hit play. Any ideas, or anyone see this before?
Thanks in advance, Matt K
Not sure what I'm doing wrong, unless it doesn't like the clips I've tried, but I get a crash every time I try to run my game with the line:
myHapticsClip = new OVRHapticsClip(hapClip, 0);
I have tried a few clips now but it just goes non responsive when I hit play. Any ideas, or anyone see this before?
Thanks in advance, Matt K
4 Replies
Replies have been turned off for this discussion
- AnonymousThanks imperativity, It's a very annoying thing to be stuck on, and it just wont go.
- kerskMeta EmployeeHi Matt,
Unfortunately, we are unable to reproduce the issue you are seeing.
Can you attach your unity logs after encountering this error? Also, what version of Unity and Oculus Utilities are you are using? If possible, a minimal project that includes the sample data and demonstrates the crash would be extremely helpful as well.
Thanks! - kerskMeta EmployeeIs it possible the byte[] you are passing in as "hapClip" is null? That would cause a null reference exception and could potentially explain the behavior you are seeing.
- WelbyAdventurerJust posting this here since it may help. I got a crash with this code "myHapticsClip = new OVRHapticsClip" as well on Unity 5.4 beta. However the crash disappear and everything is fine on Unity 5.6 beta.
I'd suggest you to update your Unity version since that may be he issue.
Hope that helps
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 months ago
- 9 years agoAnonymous
- 2 years ago