Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    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,754
    Well, the other alternative is, don't use OVRManager. :p Turns out, you don't need it!
     
  3. Wattosan

    Wattosan

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

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    8,754
    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.
     
    Wattosan likes this.
  5. StitchMedia

    StitchMedia

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