private float GetConditionHeight(SerializedProperty property, int index) { if (property.isExpanded && property.objectReferenceValue != null) { var condition = property.GetAs <Condition>(); return(EditorGUIUtility.singleLineHeight + InspectorUtils.GetDefaultInspectorHeight(new SerializedObject(condition))); } return(GenericParamUtils.FieldHeight); }