public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
        {
            if (property.propertyType != SerializedPropertyType.ObjectReference)
            {
                return(EditorGUIUtility.singleLineHeight);
            }

            return(_compPropDrawer.GetPropertyHeight(property, label));
        }
        public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
        {
            var attrib = this.attribute as TypeRestrictionAttribute;

            if (attrib.HideTypeDropDown)
            {
                return(EditorGUIUtility.singleLineHeight);
            }
            else
            {
                if (_selectComponentDrawer == null)
                {
                    _selectComponentDrawer = new SelectableComponentPropertyDrawer();
                }
                return(_selectComponentDrawer.GetPropertyHeight(property, label));
            }
        }