Skip to content

Commit cc4143b

Browse files
authored
Debug build option (#31)
1 parent 44b0e68 commit cc4143b

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Editor/EcsactRuntimeBuilder.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ public static void Build
198198
proc.StartInfo.Arguments += "\"" + ecsactFile + "\" ";
199199
}
200200

201+
if(settings.runtimeBuilderDebugBuild) {
202+
proc.StartInfo.Arguments += " --debug ";
203+
}
204+
201205
proc.StartInfo.Arguments += "--output=\"";
202206
proc.StartInfo.Arguments += Path.GetFullPath(
203207
settings.runtimeBuilderOutputPath

Editor/EcsactSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class EcsactSettings : ScriptableObject {
1515
public const SettingsScope scope = SettingsScope.Project;
1616

1717
public string runtimeBuilderOutputPath = "Assets/Plugins/EcsactRuntime";
18+
public bool runtimeBuilderDebugBuild = false;
1819

1920
public string runtimeBuilderCompilerPath = "";
2021

Editor/EcsactSettings.uxml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="True">
2-
<ui:Template name="EcsactRuntimeMethodLoadedUI" src="project://database/Packages/com.seaube.ecsact/Editor/EcsactRuntimeMethodLoadedUI.uxml?fileID=9197481963319205126&amp;guid=a2a638a8b49ec24468a126f89d509035&amp;type=3#EcsactRuntimeMethodLoadedUI" />
2+
<ui:Template name="EcsactRuntimeMethodLoadedUI" src="project://database/Packages/dev.ecsact.unity/Editor/EcsactRuntimeMethodLoadedUI.uxml?fileID=9197481963319205126&amp;guid=a2a638a8b49ec24468a126f89d509035&amp;type=3#EcsactRuntimeMethodLoadedUI" />
33
<ui:ScrollView>
44
<ui:GroupBox>
55
<ui:Label text="Runtime Builder Settings" display-tooltip-when-elided="true" style="font-size: 16px; -unity-font-style: bold;" />
6+
<ui:Toggle label="Debug Runtime Build" binding-path="runtimeBuilderDebugBuild" />
67
<ui:TextField picking-mode="Ignore" label="Runtime Output Path" value="Assets/Plugins/EcsactRuntime" text="Assets/Plugins/EcsactRuntime" multiline="false" binding-path="runtimeBuilderOutputPath" />
78
<ui:VisualElement tooltip="Generated runtime dynamic library for Windows" style="flex-direction: row;">
89
<ui:Label text="Assets/Plugins/EcsactRuntime" display-tooltip-when-elided="true" binding-path="runtimeBuilderOutputPath" style="padding-left: 160px; font-size: 10px; color: rgba(210, 210, 210, 0.47); padding-right: 0;" />

0 commit comments

Comments
 (0)