playMaker

Author Topic: IsPointerOverUi "StoreObject"  (Read 532 times)

Phuzz

  • Junior Playmaker
  • **
  • Posts: 94
    • View Profile
    • Bzilla Games
IsPointerOverUi "StoreObject"
« on: December 13, 2015, 01:59:30 AM »
Hello

I have a grid of UI images, something like a crosswords game, I have an FSM attached to the Image prefab, is there a way to use "IsPointerOverUi" action with the Gameobject variable ? I need to store the UI object the the pointer is over, this way I can manage all buttons from one manager instead of having many FSMs when many are created for harder levels. So basically something like a MousePick event but with UI.
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: IsPointerOverUi "StoreObject"
« Reply #1 on: December 13, 2015, 11:16:17 AM »
Hi,

 This is a good question. I'll investigate. however, I would suggest you properly setup each objects supposed to respond to the user input, as opposed to create an fsm that catch everything and becomes very tricky to handle as your needs will grow.

 Bye,

 Jean

Phuzz

  • Junior Playmaker
  • **
  • Posts: 94
    • View Profile
    • Bzilla Games
Re: IsPointerOverUi "StoreObject"
« Reply #2 on: December 14, 2015, 10:36:33 AM »
Alright :) thanks for the advice, and for your help.
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: IsPointerOverUi "StoreObject"
« Reply #3 on: December 21, 2015, 04:48:06 AM »
Hi,

 It turns out you can't Unity isn't providing this information in that form.

http://docs.unity3d.com/462/Documentation/ScriptReference/EventSystems.EventSystem.IsPointerOverGameObject.html

Bye,

 Jean