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