Playmaker Forum

PlayMaker News => PlayMaker Announcements => Topic started by: mthicke on March 04, 2014, 07:27:45 PM

Title: Call Method[SOLVED]
Post by: mthicke on March 04, 2014, 07:27:45 PM
Doesn't seem to work and there seems to be very little documentation. "Dragging a script" into the field is not working for me. Does the script need to be on the same object? Does it need to be C#? I've tried everything.
Title: Re: Call Method
Post by: Alex Chouls on March 05, 2014, 07:41:07 AM
I suspect you're dragging the actual script from the project view instead of the script on the GameObject. It works much the same as Get Property and Set Property - you have to select a GameObject, find the behaviour on the GameObject, then drag that *component* from the Inspector into the target field. There are a few videos showing this for GetProperty/Set Property on YouTube. Maybe Lane will be nice enough to make one for Call Method :)
Title: Re: Call Method
Post by: jeanfabre on March 05, 2014, 10:08:35 PM

 Yep, I have been chating with lane yesterday, he's on the case, and I can confirm it all works fine as well. This sample/tutorial will be the beginning of a new chapter in the wiki where we are going to organize micro samples targeting specific actions, and we'll build up from there for a better way to have all samples organized, instead of spreaded out on forum posts.


Title: Re: Call Method
Post by: mthicke on March 10, 2014, 08:38:22 PM
Thanks, I was trying to drag a script from the Project View rather than from the Inspector.