public override float GetHeight(GUIContent label)
        {
            var height = AssetDisplayDrawer.GetHeight(label);

            if (_caller.Inputs.Count > 0 || _caller.Outputs.Count > 0)
            {
                height += RectHelper.VerticalSpace;
            }

            if (_caller.Inputs.Count > 0)
            {
                height += _inputs.GetHeight();
            }

            if (_caller.Outputs.Count > 0)
            {
                height += _outputs.GetHeight();
            }

            return(height);
        }
Esempio n. 2
0
 public override float GetHeight(GUIContent label)
 {
     return(_listControl.GetHeight());
 }
Esempio n. 3
0
 public override float GetHeight(GUIContent label)
 {
     return(RectHelper.LineHeight + _listControl.GetHeight());
 }