playMaker

Author Topic: ArrayMaker - PlayMaker events - Enable Events  (Read 1590 times)

upOwlNight

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
ArrayMaker - PlayMaker events - Enable Events
« on: March 03, 2014, 10:19:56 AM »
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"

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13143
  • Official Playmaker Support
    • View Profile
Re: ArrayMaker - PlayMaker events - Enable Events
« Reply #1 on: March 03, 2014, 09: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

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: ArrayMaker - PlayMaker events - Enable Events
« Reply #2 on: May 21, 2015, 08: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?
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13143
  • Official Playmaker Support
    • View Profile
Re: ArrayMaker - PlayMaker events - Enable Events
« Reply #3 on: May 25, 2015, 06: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

sebaslive

  • Hero Member
  • *****
  • Posts: 539
    • View Profile
    • Frame Tale Studios
Re: ArrayMaker - PlayMaker events - Enable Events
« Reply #4 on: May 26, 2015, 04: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.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13143
  • Official Playmaker Support
    • View Profile
Re: ArrayMaker - PlayMaker events - Enable Events
« Reply #5 on: June 16, 2015, 05:26:00 AM »
Hi,

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

 Bye,

 Jean

craigz

  • Full Member
  • ***
  • Posts: 127
    • View Profile
    • Haven Made
Re: ArrayMaker - PlayMaker events - Enable Events
« Reply #6 on: May 15, 2018, 07:17:13 PM »
Sorry to necro this thread :)

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

-craigz

craigz

  • Full Member
  • ***
  • Posts: 127
    • View Profile
    • Haven Made
Re: ArrayMaker - PlayMaker events - Enable Events
« Reply #7 on: May 20, 2018, 01:25:30 PM »
bump!  ;D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13143
  • Official Playmaker Support
    • View Profile
Re: ArrayMaker - PlayMaker events - Enable Events
« Reply #8 on: May 21, 2018, 12: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