public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
    {
        VisibleAttribute attr = attribute as VisibleAttribute;

        if (attr == null || attr.Result(DrawerUtil.GetTarget(property)))
        {
            return(DrawerUtil.GetPropertyHeight(property, label));
        }
        else
        {
            return(0f);
        }
    }
Exemplo n.º 2
0
 public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
 {
     return(DrawerUtil.GetPropertyHeight(property, label));
 }