static public EditorGUILayoutState GetWithShouldUseVisibility(this EditorGUILayoutState item, bool should) { return(new EditorGUILayoutState( item.GetCurrentLabelWidth(), item.ShouldAutoSizeLabels(), item.GetAutoSizeLabelMargin(), should, item.ShouldAlwaysShowRecoveryFields() )); }
static public EditorGUILayoutState GetWithCurrentLabelWidth(this EditorGUILayoutState item, float width) { return(new EditorGUILayoutState( width, item.ShouldAutoSizeLabels(), item.GetAutoSizeLabelMargin(), item.ShouldUseVisibility(), item.ShouldAlwaysShowRecoveryFields() )); }