- Home /
Question by
LukasFMA · May 04, 2016 at 01:16 PM ·
canvasconvertspaceworldspace
Convert Canvas space to World coordinates
As title says, how to convert screen coordinates from Canvas space to World space?
Camera.main.ScreenToWorldPoint() is not working, google search didnt show any helpful results.
Thanks.
Comment
Answer by FortisVenaliter · May 04, 2016 at 05:36 PM
Check out the RectTransformUtility class. It has a bunch of wonderful functions for just this sort of thing.
Your answer
![](https://koobas.hobune.stream/wayback/20220612080139im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Convert UI element to world position 1 Answer
How to pop up a world canvas close to an object and in front of the camera view? 1 Answer
Tracked Device Raycaster and World Space Canvases 0 Answers
How to detect if a gameobject collides with a image on a worldspace canvas 2 Answers
Strange UI Button hover offset when using Worldspace Canvas in VR 4 Answers