Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Thomas on August 05, 2014, 10:08:09 AM

Title: ObjectPropertyDrawer not showing
Post by: Thomas on August 05, 2014, 10:08:09 AM
Hi,
I use Playmaker 1.7.7.2 and I can't make the sample ObjectPropertyDrawer work.
I just created a new file in Assets/Editor called ObjectPropertyDrawerTest.cs containing the code in https://hutonggames.fogbugz.com/default.asp?W1105 (https://hutonggames.fogbugz.com/default.asp?W1105).
Then I created an action containing a public AudioClip parameter.
The Playmaker action panel still shows the default object drawer for the AudioClip, and the code is never called.

Did I do something wrong?

Thank you!
Title: Re: ObjectPropertyDrawer not showing
Post by: Thomas on August 12, 2014, 02:16:36 AM
I still cannot make this work, is there any other sample for this feature ?
Title: Re: ObjectPropertyDrawer not showing
Post by: Alex Chouls on August 12, 2014, 02:35:26 PM
I just tried the sample here and it worked as expected...

Do you have any errors in the console?
Title: Re: ObjectPropertyDrawer not showing
Post by: Thomas on August 13, 2014, 04:58:49 AM
Thanks for your answer!
Nothing in the log, here is my custom action:

Code: [Select]
public class Test : FsmStateAction {

public AudioClip test = new AudioClip();
}
Title: Re: ObjectPropertyDrawer not showing
Post by: Thomas on August 15, 2014, 12:30:05 PM
Could you share what you did to make this work?
Meanwhile we use a CustomActionEditors with reflection for every actions, very unconvenient :)...
Title: Re: ObjectPropertyDrawer not showing
Post by: Thomas on August 18, 2014, 03:11:16 PM
Ok the problem was that it only works using an FsmObject with ObjectType :
Code: [Select]
[ObjectType(typeof(AudioClip))]
public FsmObject audioClip;
It is very painful to use, is it a bug? Or will it be improved in future release?