Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Kizzol on August 16, 2017, 07:43:49 AM

Title: Showing CompoundArrayAttribute on OnGUI
Post by: Kizzol on August 16, 2017, 07:43:49 AM
Hi!
How can I show CompoundArrayAttribute on CustomActionEditor?
I tried to custom my action in CustomActionEditor to showing two CompoundArray but it not work? What am I doing wrong?
Thanks!

(http://i65.tinypic.com/x253z5.jpg)

Code: [Select]
namespace HutongGames.PlayMakerEditor
{
    [CustomActionEditor(typeof(HutongGames.PlayMaker.Actions.RaycastLayerAndTag))]
    public class RatcastLayerAndTagCustomEditor : CustomActionEditor
    {
        private RaycastLayerAndTag raycastLayerAndTag;
       
        public override bool OnGUI()
        {
            raycastLayerAndTag = target as RaycastLayerAndTag;

             EditField("compareLayer");
             EditField("sendLayerEvent");

             EditField("compareTag");
             EditField("sendTagEvent");
         
            return GUI.changed;
        }
    }
}