Skip to content

Commit 4e9604f

Browse files
committed
Further changes
String to Int for consistency
1 parent b80b9ab commit 4e9604f

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

MCPForUnity/Editor/Tools/ManageScript.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,15 +1933,8 @@ string namespaceName
19331933
/// </summary>
19341934
private static ValidationLevel GetValidationLevelFromGUI()
19351935
{
1936-
string savedLevel = EditorPrefs.GetString("MCPForUnity.ValidationLevel", "standard");
1937-
return savedLevel.ToLower() switch
1938-
{
1939-
"basic" => ValidationLevel.Basic,
1940-
"standard" => ValidationLevel.Standard,
1941-
"comprehensive" => ValidationLevel.Comprehensive,
1942-
"strict" => ValidationLevel.Strict,
1943-
_ => ValidationLevel.Standard // Default fallback
1944-
};
1936+
int savedLevel = EditorPrefs.GetInt("MCPForUnity.ValidationLevel", (int)ValidationLevel.Standard);
1937+
return (ValidationLevel)Mathf.Clamp(savedLevel, 0, 3);
19451938
}
19461939

19471940
/// <summary>

restore-dev.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ echo.
1111

1212
:: Configuration
1313
set "DEFAULT_BACKUP_DIR=%USERPROFILE%\Desktop\unity-mcp-backup"
14-
set "DEFAULT_SERVER_PATH=%LOCALAPPDATA%\Programs\UnityMCP\UnityMcpServer\src"
14+
set "DEFAULT_SERVER_PATH=%LOCALAPPDATA%\UnityMCP\UnityMcpServer\src"
1515

1616
:: Get user inputs
1717
echo Please provide the following paths:

0 commit comments

Comments
 (0)