Building with the command line
Building Native Plugins via cmd
- Install NuGet
- Add
nuget.exe
to yourPATH
variable- Go to
Edit the system environment variables -> Advanced -> Environment Variables
- Add the directory containing nuget.exe to your User variables
Path
or the System variablesPath
- Go to
- Restart any command windows to pick up your new
Path
definition - Add your downloaded
Blackmagic DeckLink SDK 10.9.11
folder to aexternal\dependencies\BlackmagicDesign
folder in your MixedReality-SpectatorView repo clone. - Run
tools\ci\scripts\buildNativeProjectLocal.bat
Building Unity Projects via cmd
- Run
tools\ci\scripts\buildUnityProjectLocal.bat
Note: If you have updated your local SpectatorView.Example.Unity project to contain additional preprocessor directives (for example, STATESYNC_TEXTMESHPRO, etc) and the code no longer compiles upon opening the project, this buildUnityProjectLocal.bat will fail.
Running tests
Running PlayMode Tests
- Open the SpectatorView.Example.Unity project in Unity
- Open the Build Settings
(File -> Build Settings)
and include theSpectatorViewCompositor
scene in your build - Open the Test Runner Window
(Window -> General -> Test Runner)
- Select
Run All
for the PlayMode tests