-
Notifications
You must be signed in to change notification settings - Fork 1
Common Errors
-
Problem: A message like:
failed to install TGTutorial.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.DefaultCompany.tarsier1 signatures do not match the previously installed version; ignoring!]
-
Solution 1: Open
File > Build Settings > Player Settings
and make sure that theCompany Name
at the top is the same as thePackage Name
underOther Settings
, build the project again -
Solution 2: From the command line, run
adb uninstall "nameOfPackageHere"
, then runadb install "yourBuildName.apk"
-
Problem: For some reason, when two things collide/when one thing enter the collider of the other, nothing happens.
-
Trigger colliders:
OnTriggerEnter
,OnTriggerExit
, etc.- At least one of the objects involved must have a rigidbody
-
IsTrigger
must be on for only 1 object
-
Non-trigger colliders:
OnCollisionEnter
,OnCollisionExit
, etc.- At least one of the objects involved must have a non-kinematic rigidbody (
IsKinematic
needs to be unchecked) -
IsTrigger
must be off for all objects involved
- At least one of the objects involved must have a non-kinematic rigidbody (
-
Problem: Do you see weird shadows that move with you when you pan in the editor or move your head in the headset like this?
-
Solution: Find the render pipeline asset in your files (locate it via
project settings --> graphics --> click on the asset in the scriptable render pipeline settings box
). Open it in the inspector, open the shadows dropdown, and increase the number for distance.
-
Problem: Things cut off or become invisible when they come close to my camera, especially after scaling the OVRCameraRig down, like this:
-
Solution: Adjust the near clipping plane on the centerEyeAnchor camera to be smaller.
-
Problem: Unity crashes when I try to open Player Settings or Project Settings
-
Solution: Most likely, it's the
ProjectSettings/XRSettings.asset
that has something weird happening. Uninstalling and re-installing packages while making sure your build settings are correct should fix this.
- Go to
Window > Package Manager
and uninstall all XR-related installed packages. - Re-install the XR Plugin Management
- Go to your player settings (
File > Build Settings > Player Settings
). UnderXR Settings
make sure thatVirtual Reality Supported
is not checked, because this options is deprecated. - In your project settings, go to
XR Plug-in Management
. Make sure you are on the Android tab and checkOculus
. This should automatically install the Oculus XR plugin. - Go back to the package manager and make sure the
Oculus XR Plugin
is installed. If it's not, install it.
-
Problem: You've built and installed your build onto the Quest, but when you open it in the headset, it's just black.
-
Solution: Make sure all of your build settings, player settings, and project settings are correct by following these instructions. You may need to re-generate the Android Manifest file as well. You can do that by going to
Oculus > Tools > Create store-compatible AndroidManifest.xml.