Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: jwvanderbeck on December 14, 2014, 12:00:15 PM
-
I want to see about integrating some other third party tools we are using for our game, but I don't see it being possible using only the variable types given by PlayMaker.
Is it possible to add custom variable types?
-
If you choose the Object var type in playmaker then go into the variable settings you'll be able to create custom var types- also get/set property can be helpful controlling other scripts as well
-
If you choose the Object var type in playmaker then go into the variable settings you'll be able to create custom var types-
Thanks I hadn't noticed that before. Oddly though some of what I need is in that list and some isn't. I'm not sure why some types are there and some aren't, but they aren't all there.
Plus I really need to work with Arrays and I don't see support for that anywhere.
-
Make sure you into the Unity.Engine hierarchy for all the types- if you want to use arrays in Playmaker install the free add on Arraymaker or wait for version 1.8 as its supposed to have native array actions- but arraymaker works well now
-
Make sure you into the Unity.Engine hierarchy for all the types- if you want to use arrays in Playmaker install the free add on Arraymaker or wait for version 1.8 as its supposed to have native array actions- but arraymaker works well now
No they really aren't there, not anywhere in the list. Some of the types are, some aren't. I can't find the logic, but I have looked exhaustively at the entire list :(
ArrayMaker looks like it basically just does what I already wrote code to do, which is to say use a standard GO to hold the arrays, so I will just hold out for built in support for now. Thanks.
I am working around all these issues as best I can and it is doable, just not clean. Wish I could figure out why some of the types aren't showing up in that list.
-
Ok I figured out my issue. The variable types that I needed that weren't in the list, apparently don't descend from MonoBehaviour. I am building proxy wrappers and all is good.
-
Hi,
yes, that's the way to go, and you can also create a class inhereting Object and then you can use the fsm object variable to host it ( but be careful with the memory and garbage collection, it's not ideal).
Bye,
Jean