change: the size of the soft mask buffer preview is changed to 128 (in editor)

vr
mob-sakai 2020-06-04 12:46:49 +09:00
parent 125f00e7a2
commit ddab49c1e4
1 changed files with 3 additions and 6 deletions

View File

@ -57,9 +57,8 @@ namespace Coffee.UISoftMask
} }
// Preview buffer. // Preview buffer.
GUILayout.BeginHorizontal(EditorStyles.helpBox); GUILayout.BeginVertical(EditorStyles.helpBox);
if (s_Preview != (s_Preview = EditorGUILayout.ToggleLeft("Preview Buffer", s_Preview, if (s_Preview != (s_Preview = EditorGUILayout.ToggleLeft("Preview Buffer", s_Preview)))
GUILayout.MaxWidth(EditorGUIUtility.labelWidth))))
{ {
EditorPrefs.SetBool(k_PrefsPreview, s_Preview); EditorPrefs.SetBool(k_PrefsPreview, s_Preview);
} }
@ -71,9 +70,7 @@ namespace Coffee.UISoftMask
EditorGUI.DrawPreviewTexture(GUILayoutUtility.GetRect(width, 128), tex, null, ScaleMode.ScaleToFit); EditorGUI.DrawPreviewTexture(GUILayoutUtility.GetRect(width, 128), tex, null, ScaleMode.ScaleToFit);
Repaint(); Repaint();
} }
GUILayout.EndVertical();
GUILayout.FlexibleSpace();
GUILayout.EndHorizontal();
} }