File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ void HandleCommandLineLaunch()
184
184
var commandLineArgs = args [ 1 ] ;
185
185
if ( commandLineArgs == "-projectPath" )
186
186
{
187
- Console . WriteLine ( "Launching from commandline ..." ) ;
187
+ Console . WriteLine ( "Launching from commandline..." ) ;
188
188
189
189
// path
190
190
var projectPathArgument = args [ 2 ] ;
@@ -1801,9 +1801,10 @@ void CreateNewEmptyProject(string targetFolder = null)
1801
1801
1802
1802
if ( string . IsNullOrEmpty ( newVersion ) )
1803
1803
{
1804
- Console . WriteLine ( "Missing selected Unity version" ) ;
1805
- SetStatus ( "Missing selected Unity version (it's null, this should not happen)" ) ;
1806
- return ;
1804
+ Console . WriteLine ( "Missing selected Unity version, probably launching from context menu" ) ;
1805
+ newVersion = preferredVersion ;
1806
+ // if no preferred version, use latest
1807
+ if ( preferredVersion == null ) newVersion = unityInstallationsSource [ 0 ] . Version ;
1807
1808
}
1808
1809
1809
1810
var suggestedName = targetFolder != null ? Path . GetFileName ( targetFolder ) : Tools . GetSuggestedProjectName ( newVersion , rootFolder ) ;
You can’t perform that action at this time.
0 commit comments