public override float GetPropertyHeight(SerializedProperty property, GUIContent label) { float height = EditorGUIUtility.singleLineHeight; SerializedProperty targetProp = property.FindPropertyRelative("Target"); SerializedProperty callProp = property.FindPropertyRelative("Call"); height += EditorGUIUtility.standardVerticalSpacing * 2; height += MsgEditorGUI.GetHeightMsgTargetField(targetProp, label) + MsgEditorGUI.GetHeightMsgCallField(callProp, label); return(height); }
public override float GetPropertyHeight(SerializedProperty property, GUIContent label) { return(MsgEditorGUI.GetHeightMsgTargetField(property, label)); }