File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
Assets/MixedRealityToolkit/Utilities/BuildAndDeploy Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ public string OutputDirectory
5050 /// <inheritdoc />
5151 public ColorSpace ? ColorSpace { get ; set ; }
5252
53+ /// <inheritdoc />
54+ public ScriptingImplementation ? ScriptingBackend { get ; set ; }
55+
5356 /// <inheritdoc />
5457 public bool AutoIncrement { get ; set ; } = false ;
5558
Original file line number Diff line number Diff line change @@ -57,6 +57,11 @@ public interface IBuildInfo
5757 /// </summary>
5858 ColorSpace ? ColorSpace { get ; set ; }
5959
60+ /// <summary>
61+ /// Optional parameter to set the scripting backend
62+ /// </summary>
63+ ScriptingImplementation ? ScriptingBackend { get ; set ; }
64+
6065 /// <summary>
6166 /// Should the build auto increment the build version number?
6267 /// </summary>
Original file line number Diff line number Diff line change @@ -84,6 +84,11 @@ public static BuildReport BuildUnityPlayer(IBuildInfo buildInfo)
8484 PlayerSettings . colorSpace = buildInfo . ColorSpace . Value ;
8585 }
8686
87+ if ( buildInfo . ScriptingBackend . HasValue )
88+ {
89+ PlayerSettings . SetScriptingBackend ( buildTargetGroup , buildInfo . ScriptingBackend . Value ) ;
90+ }
91+
8792 BuildTarget oldBuildTarget = EditorUserBuildSettings . activeBuildTarget ;
8893 BuildTargetGroup oldBuildTargetGroup = oldBuildTarget . GetGroup ( ) ;
8994
@@ -221,6 +226,9 @@ public static void ParseBuildCommandLine(ref IBuildInfo buildInfo)
221226 case "-colorSpace" :
222227 buildInfo . ColorSpace = ( ColorSpace ) Enum . Parse ( typeof ( ColorSpace ) , arguments [ ++ i ] ) ;
223228 break ;
229+ case "-scriptingBackend" :
230+ buildInfo . ScriptingBackend = ( ScriptingImplementation ) Enum . Parse ( typeof ( ScriptingImplementation ) , arguments [ ++ i ] ) ;
231+ break ;
224232 case "-x86" :
225233 case "-x64" :
226234 case "-arm" :
You can’t perform that action at this time.
0 commit comments