Search Unity

Bug XR interactable objects causing major camera shake ONLY in build

Discussion in 'VR' started by LiveLab, Dec 11, 2023.

  1. LiveLab


    Feb 7, 2020
    We have a VR(Oculus 2) project with a group of objects that cause the camera to shake when they are in view, but ONLY in the build. Everything is working great in the editor, and there are only one or two yellow warnings for different objects, not the objects with the problems.

    It's these bottles on a round frame, and they have the XR interactable script attached. They also have a script attached that causes the bottle to drop when the player lets go.

    The project is in version 2021.3.17f1

    Some other details:
    -the camera has an object that rotates it's view, since it's a boat game and we're trying to include sea movement
    -Some scenes have the bottles, and the build works alright. Some work, but if a second copy of the bottles is put in the scene, even if they have nothing attached (no colliders, no XR interactable, etc.. just mesh), it will cause the camera to shake
    -Older versions of the project work fine in the build, but if we bring the older models into the most recent scene, it is messed up

    I've attached pictures of the mesh and the inspector. Here's links to a video of what the camera shake looks like

    Attached Files:

  2. Deltigre


    Unity Technologies

    Sep 13, 2022
    You seem to be encountering severe performance issues by the videos you posted. I would recommend trying to improve performance significantly before attempting to diagnose any other potential symptoms - especially if the build is for a standalone headset like Quest, as the performance is significantly more limited than monoscopic rendering on a PC.
  3. gareth_untether


    Jan 5, 2018