Playmaker Forum
PlayMaker Feedback => Feature Requests => Topic started by: Alatriste on January 22, 2019, 06:05:55 AM
-
Hi,
I don't know if this can be possible, but most of the plugins I use that don't have support to playmaker seems to be very straightforward in their code: call the function with the needed parameters.
Would it be possible to create a wizard that helps to create those actions in an easier (dummy) way? Call Method already make easy to call functions from a given script. The problem is when the plugin is not just a single script.
Just an idea. :)
-
Nah, it would be impossible to make. Besides, there's not much to it, you need some basic c# knowledge, unity api which is well documented and in the end it usually boils down to storing a few variables and calling a method to run the script.
And if you can't do it, there's always someone to help here.
-
Hi,
it is actually possible to do but requires a lot of work.
by using reflection you can introspect a given class and then choose which property or method to create an action for, and trickle down all major options for it, for example with a property, do you want to set it or get it, etc etc.
so yes it is possible, One old depreccaated asset had one of its developer that madde such a tool, but unfoortuntly they did not want to share that tool, it was basically parsing their assets and create setters and getters custom actions for all their properties.
Bye,
Jean
-
Are set property/call method actions using reflection? Anyway, whatever script that you open in any decent editor has all variables, methods and parameters listed.
-
Pity they didn't want to share. Maybe for Playmaker 2.0? 8)
-
Hi.
For which assets you are looking to get actions for?
-
Hi.
For which assets you are looking to get actions for?
Right now I'm working with two really interesting assets that they don't have playmaker support:
Inventory Engine:
https://assetstore.unity.com/packages/tools/gui/inventory-engine-95550 (https://assetstore.unity.com/packages/tools/gui/inventory-engine-95550)
Journal Achievements
https://assetstore.unity.com/packages/tools/gui/journal-achievement-system-93278 (https://assetstore.unity.com/packages/tools/gui/journal-achievement-system-93278)