playMaker

Author Topic: Wizard to Create Custom Actions for plugins  (Read 2459 times)

Alatriste

  • Full Member
  • ***
  • Posts: 194
Wizard to Create Custom Actions for plugins
« 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. :)

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Wizard to Create Custom Actions for plugins
« Reply #1 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.
« Last Edit: January 22, 2019, 10:11:06 AM by krmko »
Available for Playmaker work

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Wizard to Create Custom Actions for plugins
« Reply #2 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

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Wizard to Create Custom Actions for plugins
« Reply #3 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.
« Last Edit: January 24, 2019, 12:31:11 PM by krmko »
Available for Playmaker work

Alatriste

  • Full Member
  • ***
  • Posts: 194
Re: Wizard to Create Custom Actions for plugins
« Reply #4 on: January 24, 2019, 04:21:04 PM »
Pity they didn't want to share. Maybe for Playmaker 2.0?  8)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Wizard to Create Custom Actions for plugins
« Reply #5 on: January 24, 2019, 11:05:39 PM »
Hi.

For which assets you are looking to get actions for?

Alatriste

  • Full Member
  • ***
  • Posts: 194
Re: Wizard to Create Custom Actions for plugins
« Reply #6 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

Journal Achievements
https://assetstore.unity.com/packages/tools/gui/journal-achievement-system-93278