I have a reference 1080p canvas and I want to be able to get the current mouse position related to the canvas position. Basically like Camera.ScreenToWorldPoint but for the canvas. So that when the cursor is at the middle of the window (not the screen!) I should get the middle coordinates of the canvas.
By “canvas”, do you mean a UGUI root object Canvas, or a RectTransform panel inside a canvas? Is the “canvas” world space, camera space, or screen space?
The actual canvas. Doesn’t matter if world space, camera space or screen space, all would be fine, preferably Screen Space - Camera though.