Move to interface options.
This commit is contained in:
@@ -127,12 +127,6 @@ namespace FlaxEditor.Options
|
||||
BuildAction.NavMesh,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the build configuration to use when using Cook and Run option in the editor.
|
||||
/// </summary>
|
||||
[EditorDisplay("General"), EditorOrder(201), ExpandGroups, Tooltip("The build configuration to use when using Cook and Run option in the editor.")]
|
||||
public BuildConfiguration CookAndRunBuildConfiguration { get; set; } = BuildConfiguration.Development;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether perform automatic scripts reload on main window focus.
|
||||
/// </summary>
|
||||
|
||||
@@ -420,6 +420,12 @@ namespace FlaxEditor.Options
|
||||
[DefaultValue(1), Range(1, 4)]
|
||||
[EditorDisplay("Cook & Run"), EditorOrder(600)]
|
||||
public int NumberOfGameClientsToLaunch = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the build configuration to use when using Cook and Run option in the editor.
|
||||
/// </summary>
|
||||
[EditorDisplay("Cook & Run"), EditorOrder(601), ExpandGroups, Tooltip("The build configuration to use when using Cook and Run option in the editor.")]
|
||||
public BuildConfiguration CookAndRunBuildConfiguration { get; set; } = BuildConfiguration.Development;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the curvature of the line connecting to connected visject nodes.
|
||||
|
||||
@@ -976,7 +976,7 @@ namespace FlaxEditor.Windows
|
||||
Editor.Log("Building and running");
|
||||
GameCooker.GetCurrentPlatform(out var platform, out var buildPlatform, out _);
|
||||
var numberOfClients = Editor.Options.Options.Interface.NumberOfGameClientsToLaunch;
|
||||
var buildConfig = Editor.Options.Options.General.CookAndRunBuildConfiguration;
|
||||
var buildConfig = Editor.Options.Options.Interface.CookAndRunBuildConfiguration;
|
||||
for (int i = 0; i < numberOfClients; i++)
|
||||
{
|
||||
var buildOptions = BuildOptions.AutoRun;
|
||||
@@ -1004,7 +1004,7 @@ namespace FlaxEditor.Windows
|
||||
Editor.Log("Running cooked build");
|
||||
GameCooker.GetCurrentPlatform(out var platform, out var buildPlatform, out _);
|
||||
var numberOfClients = Editor.Options.Options.Interface.NumberOfGameClientsToLaunch;
|
||||
var buildConfig = Editor.Options.Options.General.CookAndRunBuildConfiguration;
|
||||
var buildConfig = Editor.Options.Options.Interface.CookAndRunBuildConfiguration;
|
||||
for (int i = 0; i < numberOfClients; i++)
|
||||
{
|
||||
_buildingQueue.Enqueue(new QueueItem
|
||||
|
||||
Reference in New Issue
Block a user