Building with the command line
Building Native Plugins via cmd
- Install NuGet
- Add
nuget.exeto yourPATHvariable- Go to
Edit the system environment variables -> Advanced -> Environment Variables - Add the directory containing nuget.exe to your User variables
Pathor the System variablesPath
- Go to
- Restart any command windows to pick up your new
Pathdefinition - Add your downloaded
Blackmagic DeckLink SDK 10.9.11folder to aexternal\dependencies\BlackmagicDesignfolder 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 theSpectatorViewCompositorscene in your build - Open the Test Runner Window
(Window -> General -> Test Runner) - Select
Run Allfor the PlayMode tests