File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111using System . Drawing ; // for notifyicon
1212using System . IO ;
1313using System . IO . Pipes ;
14+ using System . Linq ;
1415using System . Runtime . InteropServices ;
1516using System . Text . RegularExpressions ;
1617using System . Threading ;
@@ -2147,6 +2148,12 @@ void CreateNewEmptyProject(string targetFolder = null)
21472148 initScriptFileFullPath = Tools . GetSafeFilePath ( "Scripts" , "InitializeProject.cs" ) ;
21482149 }
21492150
2151+ // if newversion is not installed, pick next available version
2152+ if ( MainWindow . unityInstalledVersions . ContainsKey ( newVersion ) == false )
2153+ {
2154+ newVersion = Tools . FindNearestVersion ( newVersion , MainWindow . unityInstalledVersions . Keys . ToList ( ) ) ;
2155+ }
2156+
21502157 // for new projects created from explorer, always ask for name
21512158 if ( chkAskNameForQuickProject . IsChecked == true || targetFolder != null )
21522159 {
You can’t perform that action at this time.
0 commit comments