Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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!
-
I still cannot make this work, is there any other sample for this feature ?
-
I just tried the sample here and it worked as expected...
Do you have any errors in the console?
-
Thanks for your answer!
Nothing in the log, here is my custom action:
public class Test : FsmStateAction {
public AudioClip test = new AudioClip();
}
-
Could you share what you did to make this work?
Meanwhile we use a CustomActionEditors with reflection for every actions, very unconvenient :)...
-
Ok the problem was that it only works using an FsmObject with ObjectType :
[ObjectType(typeof(AudioClip))]
public FsmObject audioClip;
It is very painful to use, is it a bug? Or will it be improved in future release?