File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ public static class EcsactRuntimeBuilder {
105105 private static Dictionary < long , int > _subcommandProgressIds = new ( ) ;
106106 private static Dictionary < long , string > _subcommandProgressNames = new ( ) ;
107107 private static EcsactSettings ? _settings ;
108+ private static EcsactRuntimeSettings ? _rtSettings ;
108109
109110 public struct Options {
110111 public List < string > ecsactFiles ;
@@ -129,6 +130,8 @@ public static void Build
129130 return ;
130131 }
131132
133+ _rtSettings = EcsactRuntimeSettings . Get ( ) ;
134+
132135 string runtimeBuilderExecutablePath =
133136 EcsactSdk . FindExecutable ( "ecsact_rtb" ) ;
134137
@@ -262,6 +265,12 @@ public static void Build
262265 proc . StartInfo . Arguments += " --debug " ;
263266 }
264267
268+ if ( _rtSettings . systemImplSource == Ecsact . SystemImplSource . WebAssembly ) {
269+ proc . StartInfo . Arguments += " --wasm=wasmer " ;
270+ } else if ( _rtSettings . systemImplSource == Ecsact . SystemImplSource . Csharp ) {
271+ proc . StartInfo . Arguments += " --wasm=none " ;
272+ }
273+
265274 proc . StartInfo . Arguments += "--output=\" " ;
266275 proc . StartInfo . Arguments += Path . GetFullPath (
267276 _settings . runtimeBuilderOutputPath
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ public override void OnImportAsset(AssetImportContext ctx) {
5959 } ;
6060
6161 try {
62- UnityEngine . Debug . Log ( codegen . StartInfo . Arguments ) ;
6362 codegen . Start ( ) ;
6463 codegen . BeginOutputReadLine ( ) ;
6564 codegen . BeginErrorReadLine ( ) ;
You can’t perform that action at this time.
0 commit comments