Search Issue Tracker
By Design
Votes
0
Found in
4.6.1f1
Issue ID
660005
Regression
No
[RectTransformUtility] ScreenPointToLocalPointInRectangle returns wrong position if render mode is set to Screen Space-Overlay
Steps to reproduce this issue:
1. Open the attached project
2. Open 'BugReport' scene
3. It has a Canvas and a script which outputs local point in rect transform (using ScreenPointToLocalPointInRectangle) in the console
4. Play the scene
5. Click anywhere on the screen
6. Notice results in the console
7. Change Render Mode to 'ScreenSpace - Camera'
8. Click on the screen again
9. Expected results are now outputed
Comments (5)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
- Unity Version Control server textfield’s text overlaps with the dropdown triangle button in the Explore repositories window when an organization with a long name is selected
Tortuap
Jan 19, 2018 14:24
Yes, this is by design a very poor API design. But here is the trick : "The cam parameter should be the camera associated with the screen point. For a RectTransform in a Canvas set to Screen Space - Overlay mode, the cam parameter should be null."
IgorAherne
Dec 18, 2017 14:56
It's not giving correct results. Period.
sdpgames
Jun 11, 2015 12:50
Bug by design ^^
XRA
Apr 16, 2015 07:08
wondering the same...
DarkPixel
Mar 10, 2015 13:41
Why the status is "By Design" ?