Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Spent the whole last day fixing an aiming issue with my custom cursor. Turns out, Unity defaults to aiming from the top-left of the graphic, so I adjusted my code accordingly. Now it works perfectly in the editor, but once I upload it, something seems off again—likely a scaling issue in the browser.

Has anyone dealt with this before? Any tips on handling cursor positioning across different resolutions or WebGL builds? Let me know!

Not sure for webgl. I am working in unity as well on a native game. This is what solved it for my game. You can find the setting where you set your custom pointer through projectsettings. Hope that solves your issue!

 https://discussions.unity.com/t/custom-cursor-targeting-is-slightly-off/803281/5