Exemplo n.º 1
0
 public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
 {
     if (IsConditionMet(property) || Attr.AlwaysShow)
     {
         return(LabelDrawer.GetHeight(property, label, drawerOverride));
     }
     return(-EditorGUIUtility.standardVerticalSpacing);
 }
Exemplo n.º 2
0
 public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
 {
     if (IsConditionMet(property) || condSAtt.AlwaysShow)
     {
         if (property.type.EndsWith("Event"))
         {
             return(UEDrawer.GetPropertyHeight(property, label));
         }
         return(LabelDrawer.GetHeight(property, label));
     }
     return(-EditorGUIUtility.standardVerticalSpacing);
 }