Search Unity

Question UI is shaking when is parented to the CenterEyeAnchor

Discussion in 'VR' started by danielesuppo, Jan 7, 2023.

  1. danielesuppo

    danielesuppo

    Joined:
    Oct 20, 2015
    Posts:
    331
    Hello, I'm working on a very simple VR game, with Oculus Integration SDK and Meta Avatars.
    I've created a simple UI with a few indications that should be always visible.
    My (small) problem is that when I parent the UI Canvas to the CenterEyeAnchor, it shake a little, and to keep it stable I have to keep my head very still, that's quite impossible (I guess it's a matter of sensitivity).
    So, I guess that I should parent my UI by script, and try to filter somehow the very small shaking of the head (I'm using the OVR meter tools in overlay, and it's very very stable compared to my UI)...
    Or, maybe, there's a better approach out of the box?
    Many thanks!
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,060
    Id say have the UI not childer to anything and use smoothdamp to place it in front of the camera