Answer the question
In order to leave comments, you need to log in
How to convert world position to screen position in world unit?
I have a canvas screen space camera. I need to display the ui over the coordinates in the world so that it is in the canvas in the panel.
This is how it doesn't work:
Vector3 screen_pos = cam.WorldToViewportPoint(pos_world);
this.transform.position = screen_pos;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question