Skip to content

Commit e98ed72

Browse files
committed
testing focusing modification for #133, add comment about nographics for batch build
1 parent cd64f07 commit e98ed72

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: UnityLauncherPro/MainWindow.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1148,10 +1148,10 @@ private void BtnUpgradeProject_Click(object sender, RoutedEventArgs e)
11481148

11491149
private void GridRecent_Loaded(object sender, RoutedEventArgs e)
11501150
{
1151-
Tools.SetFocusToGrid(gridRecent);
11521151
// if coming from explorer launch, and missing unity version, projectsource is still null?
11531152
if (projectsSource != null) SetStatus("Ready (" + projectsSource.Count + " projects)");
11541153
RefreshSorting();
1154+
Tools.SetFocusToGrid(gridRecent);
11551155
}
11561156

11571157
void RefreshSorting()

Diff for: UnityLauncherPro/Tools.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,7 @@ static string[] GetScenes()
16251625

16261626
// create commandline string for building and launch it
16271627
//var buildcmd = $"\"{unityExePath}\" -quit -batchmode -nographics -projectPath \"{proj.Path}\" -executeMethod \"Builder.BuildAndroid\" -buildTarget android -logFile -";
1628+
// TODO test without nographics : https://forum.unity.com/threads/batch-build-one-scene-is-black-works-in-normal-file-build.1282823/#post-9456524
16281629
var buildParams = $" -quit -batchmode -nographics -projectPath \"{proj.Path}\" -executeMethod \"UnityLauncherProTools.Build{platform}\" -buildTarget {platform} -logFile \"{outputFolder}/../build.log\"";
16291630
Console.WriteLine("buildcmd= " + buildParams);
16301631

0 commit comments

Comments
 (0)