From 5cd1dd95b5eb421743d92fcd879b75a931dc84f5 Mon Sep 17 00:00:00 2001 From: Nick Maltbie <nick.dmalt@gmail.com> Date: Tue, 1 Sep 2020 12:47:24 -0400 Subject: [PATCH] Updated development build settings --- Assets/Editor/DevelopmentBuilder.cs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Assets/Editor/DevelopmentBuilder.cs b/Assets/Editor/DevelopmentBuilder.cs index f90ba8c8..aa5f235b 100644 --- a/Assets/Editor/DevelopmentBuilder.cs +++ b/Assets/Editor/DevelopmentBuilder.cs @@ -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"};