private static float GetPropertyHeightMaster(SerProp prop, GUICon cont, bool includeChildren, AttributeCheck ignoreAttributeCheck) { if (ignoreAttributeCheck == AttributeCheck.DontCheck) { return(DoPropSwitchHeight(prop, cont, includeChildren)); } var attributes = prop.GetSerializedPropertyAttributes(); if (attributes.Length == 0) { return(DoPropSwitchHeight(prop, cont, includeChildren)); } return(EditorGUI.GetPropertyHeight(prop, cont, includeChildren)); }
private static eProp PropDraw(Rect pos, SerProp prop, GUICon cont, bool includeChildren, AttributeCheck ignoreCheck) { var data = new eProp { Event = new Event(Event.current), Rect = pos, Value = prop }; if (ignoreCheck == AttributeCheck.DontCheck) { return(DoPropSwitchDraw(pos, prop, cont, includeChildren, data)); } var attributes = prop.GetSerializedPropertyAttributes(); if (attributes.Length == 0) { return(DoPropSwitchDraw(pos, prop, cont, includeChildren, data)); } EditorGUI.PropertyField(pos, prop, cont, includeChildren); return(data); }