This section describes the complete workflow for setting up and running the CSWUnity Map Streamer demo after CDW, Visual Studio, and Unity are installed.

Figure: Overall Map Streamer workflow from installation and cloning through build and Unity demo execution.
- Open the Company Portal application in the CDW.
- Search for and install Git.
- This installs:
- Git Bash
- Git CMD
-
Open a browser and go to:
https://saab.ghe.com -
Authenticate using Saab SSO.
-
Open Git Bash.
-
Navigate to the directory where you want to clone the repository.
-
Run:
git clone https://saab.ghe.com/saab/CSWUnity.git
- Navigate into the repository:
cd CSWUnity
The repository contains files/folders similar to:
CSWUnity
│
├── Build_x64.bat
├── Build_x64_d.bat
├── README.md
├── projects
├── tutorial
├── vs17
├── com.saab.map-streamer
└── Saab.Foundation.Map.Manager.Test
From Git Bash, open the current repository folder in Windows File Explorer:
explorer .
Alternatively, navigate manually to the cloned CSWUnity folder.
In File Explorer, navigate to:
CSWUnity/vs17/Install_Gizmo/
Open:
Install_Gizmo.sln
The solution opens in Visual Studio.
Building the solution:
- Downloads the required NuGet packages.
- Builds the required libraries.
- Generates plugin DLLs.
- Deploys the plugin binaries required by Unity.
The available build configurations are:
Debug | x64
Release | x64
Recommended usage:
- Release | x64 — Recommended for running the demo.
- Debug | x64 — Recommended for development and debugging.

Figure: Example Visual Studio build configuration using Release and x64.
Use only one configuration at a time.
To build the solution in Visual Studio:
Build -> Build Solution
or press:
Figure: Example successful build output for the Install_Gizmo solution.
If changing the build configuration from Debug to Release, or from Release to Debug:
- Close Unity.
- Run:
clean.bat
- Reopen
Install_Gizmo.sln. - Select the required configuration.
- Build the solution again.
Do not mix Debug and Release plugin DLLs.
The SDK can also be built using the batch files available in the CSWUnity repository.
For a Release build:
build_x64.bat
For a Debug build:
build_x64_d.bat
Before switching between build configurations, run:
clean.bat
- Open Unity Hub.
- Select Projects.
- Click Add Project From Disk.
- Select:
CSWUnity/projects/com.saab.map-streamer

Figure: Select the com.saab.map-streamer project folder when adding the project in Unity Hub.
Figure: Example of an incorrectly selected project directory resulting in missing Assets.
-
In Unity Hub, click the
com.saab.map-streamerproject. -
Wait for Unity Editor to finish:
- Importing assets
- Compiling scripts
- Resolving packages
-
In the Unity Project window, open:
Assets -> Scenes -> ExampleScene
- Double-click ExampleScene (
Assets/Scenes/ExampleScene.unity).
Press the Play (▶) button at the top of the Unity Editor.
The streaming map should load in the scene.

Figure: Expected Map Streamer demo output in the Unity Editor.
| Key | Action |
|---|---|
W |
Move Forward |
A |
Move Left |
S |
Move Backward |
D |
Move Right |
Space |
Move Up |
Ctrl |
Move Down |
Arrow Keys |
Rotate Camera |
Shift |
Increase Movement Speed |
If the plugin build is changed from Release to Debug or from Debug to Release:
- Close Unity.
- Run
clean.bat. - Rebuild using only the required configuration.
- Reopen Unity.
This prevents native plugin mismatches and related Unity crashes.

