- Home /
Question by
Shakabuy · Nov 28, 2021 at 05:30 PM ·
uirecttransformrectangleutility
RectTransformUtility.ScreenPointToLocalPointInRectangle does not work correctly?
RectTransformUtility.ScreenPointToLocalPointInRectangle (RectTransform, Input.mousePosition, Camera.main, out Vector2); returns a different value with a different tag for a single Game Object with a Camera component on the scene, namely, with the MainCamera tag, it returns correct coordinates, but with the Untagged tag, it returns incorrect coordinates.
Comment
Your answer
Follow this Question
Related Questions
Unity UI Rect 0 Answers
How do I scale the Xmax value of a RectTransform 3 Answers
Smoothly moving a rectTransform by script 1 Answer
How to animate UI rect transform which works for all resolutions 1 Answer
Unity Editor - Scene view not redrawing 0 Answers