Search Unity

  1. Dismiss Notice
  2. Unity wants to learn about your experiences working on a Unity project today. We'd like to hear from you via this survey.
    Dismiss Notice
  3. Read here for Unity's latest plans on OpenXR.
    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:
    9,481
    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:
    351
    How do you enable tracking etc without it?
     
  4. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,481
    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