Skip to content

Commit

Permalink
修改添加资源bug
Browse files Browse the repository at this point in the history
  • Loading branch information
It-Life committed Nov 18, 2022
1 parent 3bc474e commit a252ec8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -612,13 +612,13 @@ private void DrawSourceAssetsMenu()
}

#endregion
if (GUILayout.Button("Clean", GUILayout.Width(50f)))
if (GUILayout.Button("Clean", GUILayout.Width(80f)))
{
EditorUtility.DisplayProgressBar("Clean", "Processing...", 0f);
CleanResource();
EditorUtility.ClearProgressBar();
}
if (GUILayout.Button("Save", GUILayout.Width(50f)))
if (GUILayout.Button("Save", GUILayout.Width(80f)))
{
EditorUtility.DisplayProgressBar("Save", "Processing...", 0f);
SaveConfiguration();
Expand Down Expand Up @@ -654,9 +654,9 @@ private void DrawSourceFolder(SourceFolder sourceFolder)

GUILayout.Space(-14f * sourceFolder.Depth);
#if UNITY_2019_3_OR_NEWER
bool foldout = EditorGUI.Foldout(new Rect(18f + 14f * sourceFolder.Depth, 20f * m_CurrentSourceRowOnDraw + 4f, int.MaxValue, 14f), expand, string.Empty, true);
bool foldout = EditorGUI.Foldout(new Rect(18f + 14f * sourceFolder.Depth, 20f * m_CurrentSourceRowOnDraw + 4f, 300, 14f), expand, string.Empty, true);
#else
bool foldout = EditorGUI.Foldout(new Rect(18f + 14f * sourceFolder.Depth, 20f * m_CurrentSourceRowOnDraw + 2f, int.MaxValue, 14f), expand, string.Empty, true);
bool foldout = EditorGUI.Foldout(new Rect(18f + 14f * sourceFolder.Depth, 20f * m_CurrentSourceRowOnDraw + 2f, 300, 14f), expand, string.Empty, true);
#endif
if (expand != foldout)
{
Expand Down

0 comments on commit a252ec8

Please sign in to comment.