File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff 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>
Original file line number Diff line number Diff line change 1111
1212:: Configuration
1313set " 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
1717echo Please provide the following paths:
You can’t perform that action at this time.
0 commit comments