playMaker

Author Topic: Set cursor hotspot?  (Read 1682 times)

bigPalooka

  • Playmaker Newbie
  • *
  • Posts: 9
Set cursor hotspot?
« on: August 14, 2021, 01:55:40 AM »
Hello all!

I'm setting a custom cursor with the Set Mouse Cursor action, however the texture I'm using needs its origin/hotspot in the top left (like a regular windows cursor).

Set Mouse Cursor seems to set the hotspot to the centre by default. I have tried setting the texture as a Cursor and also as Sprite (2D and UI) with pivot set to top-left. No success so far.

I'm usually good at finding solutions on my own but this relatively simple thing has stumped me for a while now.

Any help would be very appreciated!

bigPalooka

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Set cursor hotspot?
« Reply #1 on: August 14, 2021, 10:29:40 PM »
I've fixed this by writing a C# script with different methods for each cursor and calling these methods via playmaker.

Not the neatest solution but at least it's working now.
« Last Edit: August 14, 2021, 10:35:39 PM by bigPalooka »