Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: upOwlNight on March 03, 2014, 12:19:56 PM

Title: ArrayMaker - PlayMaker events - Enable Events
Post by: upOwlNight on March 03, 2014, 12:19:56 PM
I'm having some trouble with the wording here. In my playMaker Array List Proxy Script I've enabled events in the inspector window under the dropdown Playmaker Events. 
 
I've added an event to "add event" this fires off nicely every time something is added to the list. I'm having some confusion though over the words that appear when I hover my mouse over "add event" They say: "event data filled with the item value". Can this whole tab be explained? I would love if when I clicked the ?book icon in the top right corner next to the gear if I could get an explanation page like most other playmaker things. 

All I'm trying to do is when an item is added to the list send an event that sets that item to a gameObject variable called "addedToList"
Title: Re: ArrayMaker - PlayMaker events - Enable Events
Post by: jeanfabre on March 03, 2014, 11:39:53 PM
Hi,

 Yes, proper documentation needs doing for ArrayMaker. I am aware of this.

in PlayMaker, events can have data attached to them. Within a fsm the action "Set Event Data" and "get event info" are used to set and get these event's data.

ArrayMaker fires event and attach the actual item related to the the event.

so, if you add an string to an Array, the event fired by ArrayMaker will have that string in its event data, that you can retrieve using "get event info".  In your case, it's a gameobject, so store the "gameobject" value of "get event info" in "addedToList" and you are good to go.


Does that make sense?


 Bye,

 Jean
Title: Re: ArrayMaker - PlayMaker events - Enable Events
Post by: sebaslive on May 21, 2015, 11:20:22 AM
Hi Jean, the get event info does not seem to be working for me. It sent the event and it says the event data is filled with the item value but when I try to get the event info it comes up blank.

Am I missing a step?
Title: Re: ArrayMaker - PlayMaker events - Enable Events
Post by: jeanfabre on May 25, 2015, 09:59:49 AM
Hi,

 do you have a repro scene? I'll double check, mabe there is a corner case I did not take into account.

 Bye,

 Jean
Title: Re: ArrayMaker - PlayMaker events - Enable Events
Post by: sebaslive on May 26, 2015, 07:10:28 AM
Hi Jean, I don't have a repo scene (away from unity for a week) but it's basically the info with the events. I got the array to send the add event but the value added was blank when used get info. The event set worked but the event removed did not work either.
Title: Re: ArrayMaker - PlayMaker events - Enable Events
Post by: jeanfabre on June 16, 2015, 08:26:00 AM
Hi,

 ok, can you tell me which type of value it was, it all seems fine here.

 Bye,

 Jean
Title: Re: ArrayMaker - PlayMaker events - Enable Events
Post by: craigz on May 15, 2018, 10:17:13 PM
Sorry to necro this thread :)

Having the same issue here - specifically with gameobject variables as well! xD

-craigz
Title: Re: ArrayMaker - PlayMaker events - Enable Events
Post by: craigz on May 20, 2018, 04:25:30 PM
bump!  ;D
Title: Re: ArrayMaker - PlayMaker events - Enable Events
Post by: jeanfabre on May 21, 2018, 03:45:22 AM
Hi,

 Ok, found the bug, corrected it now the EventData will be properly set when it's a GameObject that is at stake.

 Please redownload from the ecosystem. Let me know if it works for you.

Bye,

 Jean