Ejemplo n.º 1
0
    public override float GetPropertyHeight(SerializedProperty prop, GUIContent label)
    {
        SerializedProperty outputPath = prop.FindPropertyRelative("outputPath");
        int lines = 3;

        if (string.IsNullOrEmpty(outputPath.stringValue) == false)
        {
            lines += 2;
        }
        return(MyRoutines.GetGUIPropertyHeight(lines));
    }
    public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
    {
        int lines = 0;

        if (EditorGUIUtility.wideMode == false)
        {
            lines = 5;
        }
        else
        {
            lines = 4;
        }
        return(MyRoutines.GetGUIPropertyHeight(lines));
    }
    public override float GetPropertyHeight(SerializedProperty prop, GUIContent label)
    {
        SerializedProperty enabled      = prop.FindPropertyRelative("enabled");
        SerializedProperty outputFolder = prop.FindPropertyRelative("outputFolder");
        int lines = 0;

        if (enabled.boolValue == false)
        {
            lines = 1;
        }
        else
        {
            lines = 5;
        }
        if (string.IsNullOrEmpty(outputFolder.stringValue) == false && enabled.boolValue == true)
        {
            lines += 2;
        }
        return(MyRoutines.GetGUIPropertyHeight(lines));
    }
Ejemplo n.º 4
0
 public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
 {
     return(MyRoutines.GetGUIPropertyHeight(2));
 }