Skip to content

Commit

Permalink
Updated development build settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-maltbie committed Sep 1, 2020
1 parent c331b8f commit 5cd1dd9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Assets/Editor/DevelopmentBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,25 @@ public class DevelopmentBuilder
{
private static BuildOptions BuildOptionsClient()
{
return BuildOptions.Development;
EditorUserBuildSettings.development = true;
EditorUserBuildSettings.allowDebugging = true;
EditorUserBuildSettings.connectProfiler = true;

return BuildOptions.Development |
BuildOptions.ConnectWithProfiler |
BuildOptions.AllowDebugging;
}

private static BuildOptions BuildOptionsServer()
{
return BuildOptions.Development | BuildOptions.EnableHeadlessMode;
EditorUserBuildSettings.development = true;
EditorUserBuildSettings.allowDebugging = true;
EditorUserBuildSettings.connectProfiler = true;

return BuildOptions.Development |
BuildOptions.AllowDebugging |
BuildOptions.ConnectWithProfiler |
BuildOptions.EnableHeadlessMode;
}

private static readonly string[] DevelopmentScenes = {"Assets/Scenes/SampleScene.unity"};
Expand Down

0 comments on commit 5cd1dd9

Please sign in to comment.