playMaker

Author Topic: Getting cursor back?  (Read 1824 times)

nodroggg

  • Playmaker Newbie
  • *
  • Posts: 2
Getting cursor back?
« on: January 28, 2014, 05:43:01 PM »
If I rollover an object and change my cursor to a "hand grab" with raycast, how do I return it to the original arrow cursor once I move off the object beyond the raycast? Thanks in advance from a new member.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Getting cursor back?
« Reply #1 on: February 03, 2014, 03:40:49 AM »
Hi,

 if you detect a mousover, you have to then keep raycasting to spot that the model under the raycast has changed or is empty, which means getting the cursor back again

 However, by default PlayMaker has this done for you. you have two global System events for this: "MOUSE ENTER" and "MOUSE EXIT", have you experimented with these?

bye,

 Jean

nodroggg

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Getting cursor back?
« Reply #2 on: February 16, 2014, 02:49:26 PM »
I tried it and it worked, but how do you set how close the cursor must be to activate the "mouse enter" since the "mouse enter" is activated at any distance instead of just close up? Thanks for your help.

bkups2003

  • Playmaker Newbie
  • *
  • Posts: 49
Re: Getting cursor back?
« Reply #3 on: February 16, 2014, 11:16:53 PM »
Mouse Enter and Mouse Exit are only called when you enter or exit the collider. A simple sollution would be to make the collider larger.