Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: szomaza on February 09, 2019, 07:37:59 AM

Title: Custom action request to use instead of Get/Set Property[SOLVED]
Post by: szomaza on February 09, 2019, 07:37:59 AM
Hi!

I read on some threads that instead of using Get/Set Property it is better to create (or ask for if you can't create) custom actions and use those to access the properties directly, because of better performance / Reflection and the need to use Linker Wizard.

I used Get/Set Property in many different ways but now replaced all where I could find a custom action on the Ecosystem.
Great, thanks for these!

I also searched the forums but I am still missing a few actions preventing me from getting rid of all the Get/Set Properties.

It would be great to have the following actions:
- Test RigidBody2D Simulated,
- U Gui Canvas Group GET Alpha,
- Set Fixed Joint 2D properties,
- Set PolygonCollider2D points parameter.

Please see attached image for more info on how I used these.

Please add these to some list of actions todo and thanks in advance!
szomaza
Title: Re: Custom action request to use instead of Get/Set Property
Post by: tcmeric on February 09, 2019, 10:29:06 AM
Hi, have you checked the ecosystem or google for any of these actions yet?
Title: Re: Custom action request to use instead of Get/Set Property
Post by: szomaza on February 09, 2019, 11:11:07 AM
I searched in the Ecosystem and on the Playmaker forums, but did not find any action to achieve these 4 things.
Title: Re: Custom action request to use instead of Get/Set Property
Post by: jeanfabre on March 18, 2019, 03:10:20 AM
Hi,

  I just created UiCanvasGroupGetAlpha on the ecosystem.

 I'll work on the other actions asap.

Bye,

 Jean
Title: Re: Custom action request to use instead of Get/Set Property
Post by: 600 on March 18, 2019, 01:37:06 PM
UiCanvasGroupGetAlpha on the ecosystem.
This is so great! Very convenient, tried to make it but failed :D
Title: Re: Custom action request to use instead of Get/Set Property
Post by: jeanfabre on March 20, 2019, 03:25:18 AM
Hi,

 ok, so we have now on the ecosystem

- GetRigidBody2dIsSimulated ( use bool test to send event after that)
- GetFixedJoint2DProperties
- SetFixedJoint2DProperties
- SetPolygonCollider2DSetPathCount
- SetPolygonCollider2DSetPath

you can't set points directly, you must define paths for PolygonCollider2D, first set the number of path you want ( if your poly has holes, it has more than one path to define the shape), then use the SetPolygonCollider2DSetPath action

Let me know how it goes.

 Bye,

 Jean
Title: Re: Custom action request to use instead of Get/Set Property
Post by: szomaza on April 20, 2019, 11:37:21 AM
Thank you Jean!

Replaced my get/set properties with these and all of them work perfectly so far, also the UiCanvasGroupGetAlpha one.

Br,
szomaza