示例#1
0
        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);
        }