playMaker

Author Topic: Showing CompoundArrayAttribute on OnGUI  (Read 934 times)

Kizzol

  • Playmaker Newbie
  • *
  • Posts: 1
Showing CompoundArrayAttribute on OnGUI
« 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!



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;
        }
    }
}

« Last Edit: August 16, 2017, 10:25:18 AM by Kizzol »