Hi all,
I have a Canvas with a child Image Object, the image is a Cursor and I centered it on the Canvas. Then I use a FPS Controller (build-in Unity) with mouse lock enable. The problem is the position of Image different from the position of Mouse.
Like the image below.
My english is not good, sorry about that.
That’s standard. If you look at the shape of a cursor icon, youll see that the cursor actually starts from the top left. You need to put a better placement of your image,
**also you shouldn’t be doing a cursor like this. There is a field in the player settings to set a custom cursor. **
Mortup
4
Select you cursor image on the Project window and go to Import Settings > Sprite Editor. You should see a small window on the bottom-right corner where you can change some of your script’s settings. Try changing the pivot value until you found the one you want.