/// <inheritdoc />
 protected override void DrawPropertyField(PropertyDrawer drawer, DrawerAttribute attribute)
 {
     if (this.HasChildren)
     {
         this.childDrawer.OnInspectorGUI();
     }
     else if (this.IsArray)
     {
         ListPropertyDrawer.Instance.DrawArray(this.Property);
     }
     else
     {
         if (drawer == null || attribute == null)
         {
             this.DrawDefaultField();
         }
         else
         {
             drawer.Run(this, attribute);
         }
     }
 }
コード例 #2
0
        /// <inheritdoc />
        protected override void DrawPropertyField(PropertyDrawer drawer, DrawerAttribute attribute)
        {
            if (this.isArray)
            {
                return;
            }

            if (this.HasChildren)
            {
                this.childDrawer.OnInspectorGUI();
            }
            else
            {
                if (drawer == null || attribute == null)
                {
                    this.DrawDefaultField();
                }
                else
                {
                    drawer.Run(this, attribute);
                }
            }
        }