- Home /
Fitting GOs from world point to screen space UI.
Hi! I have a problem with translating position from world space to screen space.
I have "layout" gameobject in world space. This gameobject is a bunch of objects with spriterenderers, attached to parent.
Also i have UI with 2 panels: lower and upper.
I need to fit my GO to the space between 2 UI panels. I tried to use WorldToScreenPoint, but it works incorrect and it seems that i don't understand something.
Do you have any suggestions on how it can be done?
Answer by prescope1 · Oct 20, 2021 at 08:25 AM
_uiCamera.WorldToScreenPoint
RectTransformUtility.ScreenPointToLocalPointInRectangle
_uiCamera.WorldToScreenPoint
RectTransformUtility.ScreenPointToLocalPointInRectangle
Your answer
Follow this Question
Related Questions
World space and UI space 3 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Unity Dropdown - can't render unity dropdown option list in world space 0 Answers
Aligning UI Elements in Code 0 Answers