playMaker

Author Topic: Extend "Set Event Data" action [SOLVED]  (Read 9702 times)

JennaReanne

  • Junior Playmaker
  • **
  • Posts: 57
    • Little Worlds Interactive
Extend "Set Event Data" action [SOLVED]
« on: July 03, 2013, 11:42:50 AM »
Hello - I would love to be able to set multiple variables of the same type for event data.  For example, I'd like to send an event that has two int variables with it.  Right now we can only set one variable of each type.

Thanks!
« Last Edit: August 20, 2013, 03:00:05 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15498
  • Official Playmaker Support
Re: Extend "Set Event Data" action
« Reply #1 on: July 04, 2013, 06:38:25 AM »
Hi,

 I have a set of custom actions for this. Haven't officially released it yet, but its part of a set of utils for PlayMaker,

Get the PlayMaker Utils on the Ecosystem.



 . You'll have two new actions:

"Set Event Properties"
"Get Event Properties"

both are flexible: you define as much properties as you want and of the types you want.

 If you have questions, let me know.

Bye,

 Jean
« Last Edit: October 25, 2016, 03:35:33 AM by jeanfabre »

Bjakuja

  • Junior Playmaker
  • **
  • Posts: 75
Re: Extend "Set Event Data" action
« Reply #2 on: July 31, 2013, 01:20:35 PM »
Wow thanks a lot JeanFabre, this is just what I was looking for, now I can add what I want to my inventory.
I just need to solve that lag we spoke about in Playmaker help section and it will great, try to find that fix if you can, I tried with no success.
Thanks a lot for everything!

Bjakuja

  • Junior Playmaker
  • **
  • Posts: 75
Re: Extend "Set Event Data" action
« Reply #3 on: July 31, 2013, 02:01:09 PM »
It's what I am looking for but for some reason it doesn't work like set event data and get event info. Yeah I define how many variables I want before sendig event but that object not receiving any properties as it should like in get/ set data. What it the problem here, I define everything and do I need to set keys to be same in set event properties and get event properties and set event properties?
I get this weird error :
and set event properties
Expected top level layout group missing! Too many GUILayout.EndScrollView/EndVertical/EndHorizontal?
UnityEditor.DockArea:OnGUI()

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15498
  • Official Playmaker Support
Re: Extend "Set Event Data" action
« Reply #4 on: July 31, 2013, 02:15:12 PM »
HI,

 yep, you need to match keys, as you are the one that defines them.

Not sure what happens with the error. what version of unity and playmaker are you using?

bye,

Jean

Bjakuja

  • Junior Playmaker
  • **
  • Posts: 75
Re: Extend "Set Event Data" action
« Reply #5 on: July 31, 2013, 02:23:38 PM »
Yeah I am matching key but it doesn't work, Unity latest version 4.2 and Playmaker latest version 1.63 but I don't know what causing the problem, probably version compatibility if those are old actions?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15498
  • Official Playmaker Support
Re: Extend "Set Event Data" action
« Reply #6 on: August 05, 2013, 03:20:34 AM »
Hi,

 ok, yes, there is an issue, I am trying to debug, because it works on a project, but not properly when installed on others... Not sure why yet, but will find it hopefully today.

bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15498
  • Official Playmaker Support
Re: Extend "Set Event Data" action
« Reply #7 on: August 06, 2013, 09:20:50 AM »
Hi,

 ok, I edited the system. it should work a lot better now. Can you test now with this package attached?

bye,

 Jean

Bjakuja

  • Junior Playmaker
  • **
  • Posts: 75
Re: Extend "Set Event Data" action
« Reply #8 on: August 10, 2013, 12:57:25 PM »
Hi! I will test this later because i am on the vacation and when i am back i will test it. Thanks for everything ;)

Bjakuja

  • Junior Playmaker
  • **
  • Posts: 75
Re: Extend "Set Event Data" action
« Reply #9 on: August 19, 2013, 11:43:12 AM »
Tested that attached package and it's working like a charm,now i can make what i  want especially with the inventory system ;)
If i encounter any bug i will let you know ;) Thanks Jean.
Cheers

JennaReanne

  • Junior Playmaker
  • **
  • Posts: 57
    • Little Worlds Interactive
Re: Extend "Set Event Data" action [SOLVED]
« Reply #10 on: November 26, 2013, 03:14:14 PM »
This works beautifully, thank you Jean!

Graham

  • Sr. Member
  • ****
  • Posts: 331
  • I Love Playmaker!
    • Portfolio
Re: Extend "Set Event Data" action [SOLVED]
« Reply #11 on: October 11, 2016, 12:45:45 PM »
This seems extremely useful, however it causes momentary stutter during the get event properties action. The lag is more noticeable in the updated version.

Any idea what's going on here?
« Last Edit: October 11, 2016, 01:07:28 PM by Graham »
More templates on the Unity Asset Store!

Disclosure: We are using affiliate links to our assets; we may receive a commission for purchases made through them. This helps us to continue developing and maintaining great products!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15498
  • Official Playmaker Support
Re: Extend "Set Event Data" action [SOLVED]
« Reply #12 on: October 13, 2016, 02:01:50 AM »
Hi,

 I can't see anything wrong in the profiler with your scene. I made it so that it returns to the space key watcher state so that I can do this several times, and in the profiler, everything is normal.

 - Can you profile on your end?
 - What version of Unity and PlayMaker?

Bye,

 Jean

Graham

  • Sr. Member
  • ****
  • Posts: 331
  • I Love Playmaker!
    • Portfolio
Re: Extend "Set Event Data" action [SOLVED]
« Reply #13 on: October 14, 2016, 08:06:55 AM »
Thanks for checking it out Jean. I am running Unity 5.3.6 with Playmaker 1.8.3. When I run with the profiler I get a massive CPU spike originating from BehaviourUpdate=>LogStringToConsole.

Using this information, I tried removing the first two debug logs "Debug.Log(keys.Value);" and "Debug.Log("found");" from the script. The spike is no longer apparent.
More templates on the Unity Asset Store!

Disclosure: We are using affiliate links to our assets; we may receive a commission for purchases made through them. This helps us to continue developing and maintaining great products!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15498
  • Official Playmaker Support
Re: Extend "Set Event Data" action [SOLVED]
« Reply #14 on: October 25, 2016, 03:24:48 AM »
Hi,

 I checked the code and it's commented out, I think it's because I need to now remove the package attached to this thread and let people download the utils from the ecosystem.

 Bye,

 Jean