File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Assets/MixedRealityToolkit/Utilities/BuildAndDeploy Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 44using Microsoft . MixedReality . Toolkit . Core . Extensions ;
55using Microsoft . MixedReality . Toolkit . Core . Utilities . Editor ;
66using System ;
7+ using System . Collections . Generic ;
78using System . Diagnostics ;
89using System . IO ;
910using System . Linq ;
@@ -212,9 +213,16 @@ public static void ParseBuildCommandLine(ref IBuildInfo buildInfo)
212213 case "-autoIncrement" :
213214 buildInfo . AutoIncrement = true ;
214215 break ;
215- case "-scenes" :
216- buildInfo . Scenes = from scene in arguments [ ++ i ] . Split ( new char [ ] { ',' } , StringSplitOptions . RemoveEmptyEntries )
217- select scene . Trim ( ) ;
216+ case "-sceneList" :
217+ buildInfo . Scenes . Union ( from scene in arguments [ ++ i ] . Split ( new char [ ] { ',' } , StringSplitOptions . RemoveEmptyEntries )
218+ select scene . Trim ( ) ) ;
219+ break ;
220+ case "-sceneListJson" :
221+ string path = arguments [ ++ i ] ;
222+ if ( File . Exists ( path ) )
223+ {
224+ buildInfo . Scenes . Union ( JsonUtility . FromJson < List < string > > ( File . ReadAllText ( path ) ) ) ;
225+ }
218226 break ;
219227 case "-buildOutput" :
220228 buildInfo . OutputDirectory = arguments [ ++ i ] ;
You can’t perform that action at this time.
0 commit comments