Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Anonymous's avatar
Anonymous
9 years ago

Getting 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

4 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    Thanks imperativity, It's a very annoying thing to be stuck on, and it just wont go.
  • kersk's avatar
    kersk
    Meta Employee
    Hi 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!

  • kersk's avatar
    kersk
    Meta Employee
    Is 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.
  • Just 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