playMaker

Author Topic: "Get Event Sent by" problem  (Read 2466 times)

miguelfanclub

  • Full Member
  • ***
  • Posts: 165
"Get Event Sent by" problem
« on: January 27, 2019, 08:22:38 AM »
I have serious problems with Get event sent by, or get event info.

Most of the times calling a global event that has any of those two actions the first, got properly the game object who fired the event from, so the callback to them is working after the global event has finished.... but sometimes, it gets totally wrong the game object who actually fires it, as it can be something totally unrelated that never ever is calling this global event.

I have use set event data as well as set event info for the guy who is calling the event, but no luck.

Why sometimes they got totally wrong GameObjects that are actually NOT calling this event?

Right now, the event is called by a UI button game object that I needed to create a trigger event on the inspector to know when it has been highlighted or not, as "uGuiOnSelectEvent"  is not working.

http://hutonggames.com/playmakerforum/index.php?topic=10356.0

So after that this trigger fires (select/deselect) the "get event sent by" im talking about will always got the button as the game object who fired it, and its totally unrelated.


miguelfanclub

  • Full Member
  • ***
  • Posts: 165
Re: "Get Event Sent by" problem
« Reply #1 on: January 27, 2019, 09:16:19 AM »
Confirming that the "Event Trigger (Script)" on the inspector is totally messing up my "get event sent by" action.

Again, the game object that has this trigger event script is non related to the Game Object that has action "get event" on a global event and its never calling this global event EVER.

I have fixed it by Enable and Disable behavior on the "Event Trigger (Script)" but its kinda weird that has to be done like this. Doesn't seems like the best solution for it.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: "Get Event Sent by" problem
« Reply #2 on: January 27, 2019, 01:00:32 PM »
What version of Unity/Playmaker are you using?
Are you using the built-in UI events and actions or the uGUI addon?

miguelfanclub

  • Full Member
  • ***
  • Posts: 165
Re: "Get Event Sent by" problem
« Reply #3 on: January 27, 2019, 01:07:13 PM »
Confirming now that simply doesnt work
Event trigger event doesnt have anything to do with it.

So this remains the same: A UI button is forcing a "get event sent by" of another game object. Only happens when I interact with this button (highlighting it or pressing it).

After that, any "get event sent by" action on ANY game object will be triggered by this UI button.

Any ideas?

Im using latest playmaker / 2018.2 and yes, official Ugui actions.


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: "Get Event Sent by" problem
« Reply #4 on: January 27, 2019, 01:18:35 PM »
Double checking that when you say official uGUI actions you mean the built-in ones NOT the downloadable add-on. UI events and actions were integrated in 1.9.0 and you should use the add-on only if you need some extra functionality it provides. Checking so I can try to repro with the same setup you have...

If you can PM me a project that demonstrates the issue it would be very helpful.

miguelfanclub

  • Full Member
  • ***
  • Posts: 165
Re: "Get Event Sent by" problem
« Reply #5 on: January 27, 2019, 01:21:25 PM »
How can I be sure?
I have the Ugui proxy downloaded from the ecosystem I think.
I can share my SVN project.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: "Get Event Sent by" problem
« Reply #6 on: January 27, 2019, 01:37:19 PM »
Since 1.9.0 you don't need the Ugui proxy anymore.
Is this an older project that you started with an older version of PlayMaker?

Please PM about sharing the project.

miguelfanclub

  • Full Member
  • ***
  • Posts: 165
Re: "Get Event Sent by" problem
« Reply #7 on: January 27, 2019, 02:16:22 PM »
Yes, its a 1,5 years project.
Im now on latest PM.

How can i delete the old actions from the ecosystem?
Ill PM you as well

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: "Get Event Sent by" problem
« Reply #8 on: January 27, 2019, 02:42:24 PM »
Since it's an old project I wouldn't delete the old actions - you would have to rename a lot of events and swap out actions. The integration was designed to work side by side with the old system for this reason. I mainly wanted to know so I could reproduce the same issue on my end... but if you can PM me a project that's even better!

miguelfanclub

  • Full Member
  • ***
  • Posts: 165
Re: "Get Event Sent by" problem
« Reply #9 on: January 27, 2019, 03:13:30 PM »
Btw, the issue is not repro using a controller. Only when the mouse is highlighting the buttons UI.

Just sent you an EXE file link while working on sending you the SVN.

miguelfanclub

  • Full Member
  • ***
  • Posts: 165
Re: "Get Event Sent by" problem
« Reply #10 on: February 03, 2019, 02:34:54 PM »
Any chances to replicate this?