playMaker

Author Topic: MouseOver actions for GUI Texture?  (Read 1885 times)

jess84

  • Hero Member
  • *****
  • Posts: 515
MouseOver actions for GUI Texture?
« on: July 25, 2013, 08:11:50 AM »
Hi,

I'm having trouble understanding how GUI elements should work...

I have a GUI Texture representing a game object, and want to affect the game object based on MouseOver and Mouse Clicks of the GUI texture.

Get Mouse Button Down is no good as it's not restricting to my specific GUI Texture object.

MousePick / MousePickEvent would have been ideal - but it says it can't be used because my GUI Texture needs a collider.

What's the right method?

I want to know that the GUI Texture is being hovered over (so I can change the texture to a different one), and know when it's clicked so I can send events.

Thanks in advance...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: MouseOver actions for GUI Texture?
« Reply #1 on: July 29, 2013, 06:13:41 AM »
Hi,

guitexture should forward mouse events to the fsm. like MOUSE ENTER and the likes. Have you tried that?

make sure you add the global system event "MOUSE ENTER" and the like, do you know what I am talking about here?

bye,

 Jean