- Home /
Unity UI Camera.WorldToScreenPoint slow for frame?
I want to create nice solid text floating to other object's bone but on low fps it looks unstable like ui is late for frame. On 60fps it looks solid but when it goes down it looks like this :/
https://www.youtube.com/watch?v=WtPozBdOtGA&feature=youtu.be
I tried doing Camera.main.WorldToScreenPoint in Update and LateUpdate and no difference. How can I make it be solid even on low fps?
Like Cherno said two vital informations are missing:
What kind of UI do you use
Where and how do you actually move your camera?
You clearly have one frame delay between your camera movement and your UI updating. So you most likely are updating your camera orientation after the UI has been updated. If you do the camera movement in LateUpdate and the UI updating as well, it's possible that they run in the wrong order. If that's the case, try changing the script execution order. $$anonymous$$ake sure your UI update (where you actually use WorldToScreenPoint) is executed after the camera update.