Playmaker Forum

PlayMaker Feedback => Feature Requests => Topic started by: Alatriste on January 22, 2019, 06:05:55 AM

Title: Wizard to Create Custom Actions for plugins
Post 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. :)
Title: Re: Wizard to Create Custom Actions for plugins
Post by: Fat Pug Studio on January 22, 2019, 10:05:33 AM
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.
Title: Re: Wizard to Create Custom Actions for plugins
Post by: jeanfabre on January 23, 2019, 02:27:17 AM
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
Title: Re: Wizard to Create Custom Actions for plugins
Post by: Fat Pug Studio on January 24, 2019, 11:39:03 AM
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.
Title: Re: Wizard to Create Custom Actions for plugins
Post by: Alatriste on January 24, 2019, 04:21:04 PM
Pity they didn't want to share. Maybe for Playmaker 2.0?  8)
Title: Re: Wizard to Create Custom Actions for plugins
Post by: djaydino on January 24, 2019, 11:05:39 PM
Hi.

For which assets you are looking to get actions for?
Title: Re: Wizard to Create Custom Actions for plugins
Post by: Alatriste on January 25, 2019, 04:03:14 AM
Quote
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)