Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

OVRManager has too many Debugs

Discussion in 'VR' started by StitchMedia, Aug 1, 2019.

  1. StitchMedia

    StitchMedia

    Joined:
    Mar 1, 2018
    Posts:
    4
    Hi all, just got the latest SDK of Oculus for v1.39.0

    And while reading through the code, there are alot of debug calls for when events happen.\

    i.e. [OVRManager[ OnApplicationQuit
    [OVRManager]OnApplicationFocus(false)/true



    Is there an easy way to turn them ALL on/off? Or is the alternative manually going through each debug and turning then on and off independently.

    Thank you!
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    8,056
    Well, the other alternative is, don't use OVRManager. :p Turns out, you don't need it!
     
  3. F-R-O-S-T-Y

    F-R-O-S-T-Y

    Joined:
    Mar 22, 2013
    Posts:
    210
    How do you enable tracking etc without it?
     
  4. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    8,056
    You just do it yourself. If you look at what OVRManager does, it isn't very much. There are API calls (which I just do in my own code) to get the local position and rotation of each controller; apply those to your controller models. There are a few other niceties OVRManager provides — I actually do use it in some projects — but it's not as much as you probably think.
     
    F-R-O-S-T-Y likes this.
  5. StitchMedia

    StitchMedia

    Joined:
    Mar 1, 2018
    Posts:
    4
    Great thanks! I suppose not using it, is also an alternative!