Troubleshooting

If you're experiencing issues, these could be good fixes. This page is currently under construction. Please email Khoi, Ethan, or Connor for help.

Build Settings

If you're having build issues. Check to make sure your build settings match these.

Click File -> Build Settings.

  • Make sure that the scene you're working on is the top of the list. You can hit "Add Open Scenes."
  • Make sure you're on Android.
  • Turn Build System from Gradle to Internal.

Click Player Settings.

  • Android Minimum API should be "5.0 Lollipop."
  • Android Target API should be "Highest Installed."
  • Your package name should be "com.[yourname].[assignmentname]"
  • Your .NET Scripting Runtime should be 3.5 not 4.
  • In XR Settings, you should check "Virtual Reality Supported."
  • In the VR SDKs list, click the little "+" and add "Oculus."

How to Build to the Oculus Go

    Plug in your Oculus Go.

    Turn and put your Oculus Go on and hold the Oculus button to unlock it.

    Point and click "Always Trust This Computer" and click "Enable USB Debugging."

    Ensure your build settings are correct, as above.

    Ensure the scene you are working on is the first in the list of Scenes in your build settings. Also make sure your package name is not "com.oculus.Sample."

    Click "Build and Run."

    You can create a new folder called "Builds" and click into it. You can name your file "main.apk" or "beat-saber.apk".

    Click Ok and wait for Unity to build.

    Put your Go on and hold the Oculus button to unlock it. Your experience should start automatically.

    If it does not start, click on the Oculus button to go to the Oculus Home.

    Select "Library" then "Unknown Sources" and look for the package name that you put into Unity.

Unity 2018.3.0f2 Oculus Issues.

You should upgrade to the latest Unity. If that doesn't work, just comment out all the offending lines of code.

Just double click on any compile errors related to Oculus. Your editor should open and take you right to the line of the error, and you can comment it out.

It's often best to start with the top compile error, as the first error will often spawn the rest of them, so fixing the first might fix a lot of them.

Unity Build Errors

No Android devices detected .

No Android devices detected

Check if your Oculus Go is powered on.

Put on your Oculus Go and use the controller to say "Trust this Computer."

Make sure to check the "Keep my decision for all future instances" box. Otherwise, you'll have to trust the computer every time.