- Home /
Question by
unity_wTKCFq-jtS0OEA · Jan 25, 2021 at 05:35 PM ·
c#cameraworldtoscreenpoint
Incorrect X position from worldToScreen method
I'm trying to write a modification for Cities: Skylines, which outputs the screen location of a particular object.
I discovered the worldToScreen
method of the Camera
object, which seems to return the correct y position, but x position is wrong.
I use this method the exact way it's introduced in the official Unity documentation.
What might be the possible cause of this?
Comment