From 5bd477fbabea386f2ecc30735e2638a93396ccdd Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Fri, 2 Jul 2021 13:05:29 +0800 Subject: [PATCH] =?UTF-8?q?config=20=20=E4=BF=AE=E6=94=B9=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Editor/GameEditor/FrameTool/ConfigWindow.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Editor/GameEditor/FrameTool/ConfigWindow.cs b/Assets/Scripts/Editor/GameEditor/FrameTool/ConfigWindow.cs index 08afeb93fc..92965f9b5c 100644 --- a/Assets/Scripts/Editor/GameEditor/FrameTool/ConfigWindow.cs +++ b/Assets/Scripts/Editor/GameEditor/FrameTool/ConfigWindow.cs @@ -39,7 +39,8 @@ namespace GameEditor.FrameTool tempConfigPath = EditorUtility.OpenFilePanel("Resource path", tempConfigPath,"*.*"); EditorPrefs.SetString("IMPORTCCONFIG_SOURCESFOLDERPATH", tempConfigPath); StreamReader sr = File.OpenText(tempConfigPath); - SetConfigData(sr.ReadToEnd()); + SetConfigData(sr.ReadToEnd()); + sr.Close(); } if (GUILayout.Button("下载config模板", GUILayout.ExpandWidth(false))) {