Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: shinodan on January 25, 2018, 10:11:49 AM
-
Howdy folks.
Just wondering if there is anything i can do to the call method action script to allow me to specify this gameobject at runtime, i tested dragging over the object at runtime and then activating the call method and it worked the way i had hoped but because my environment is getting generated at runtime i need to be able to specify that value automatically somehow.
Myself i am currently trying to look into the code to see if i can create a public gameobject var then change it to run off that object upon activation. (on the meshcombine code)
In the picture i have highlighted the bit i mean, if that was the specify var box i would have no problem :(
-
Hi,
I think you have an old version of PLayMaker, it's there on my version:
(https://i.imgur.com/ZA60evi.png)
Bye,
Jean
-
Comment deleted, i see what you mean your screenshot was cut off for me haha :( hmmm, how recent an update? i started a couple of months ago?
Thanks
Dan
-
I am on Version 1.8.5 and Unity Version 5.6.3 :| :(
-
I think i have solved it by setting the gameobject array first instead of the gameobject itself. I was then able to set the array at runtime with the object as its perimeter :)
(https://i.gyazo.com/0000afe5988567f8174146d035192f37.png)
Thanks for help!
-
Hi,
Could you show part of the script code, how you got the parameters working?
-
Hi Djay,
In the end i didn't need to touch any script, it is an asset script called "Runtime Mesh Batcher" - https://www.assetstore.unity3d.com/en/#!/content/26200 (https://www.assetstore.unity3d.com/en/#!/content/26200) for $5 or so.
I have then just attached the script to an object and passed the perimeters through with the call method action like the screenshot :|
Hope that helps!