The Starter Template
Manual-install: If you followed the manual-install guide when you set up the fork and plugin (that is, you did NOT run
InstallGDK.bat
), do not follow the instructions below. Instead, follow the Manual-install: Example Project setup guide.
1. Set up
To use the Starter Template, you must complete the following steps:
- Create a new project using the Starter Template
- Build the GDK for Unreal module dependencies
Step 1: Create a new project using the Starter Template
- In File Explorer, navigate to
UnrealEngine\Engine\Binaries\Win64
and double-click UE4Editor.exe to open the Unreal Editor. - In Editor’s Project Browser window, select the New Project tab and then the C++ tab.
- In this tab, select SpatialOS GDK.
- In the Folder field, choose a suitable directory for your project.
- In the Name field, enter a project name of your choice.
- Select Create Project.
Note: When you create a project, Unreal Engine automatically creates a directory named after the project name you entered. This tutorial uses <YourProject>
as the project name.
Image: The Unreal Engine Project Browser, with the project file path and project name highlighted.
After you have selected Create Project, Unreal Engine generates the necessary project files and directories, it then closes the Editor and automatically opens Visual Studio.
After Visual Studio has opened, save your solution and close Visual Studio.
Step 2: Build the dependencies
To use the Starter Template, you must build the GDK for Unreal module dependencies and then add the plugin to your project. To do this:
- In File Explorer, navigate to your
<GameRoot>
directory, right-click<YourProject>.uproject
and select Generate Visual Studio project files. - In the same directory, double-click
<YourProject>
.sln` to open it with Visual Studio. - In Visual Studio’s Solution Explorer window, right-click on
<YourProject>
and select Build. - When Visual Studio has finished building your project, right-click on
<YourProject>
and select Set as StartUp Project. - Press F5 on your keyboard or select Local Windows Debugger in the Visual Studio toolbar to open your project in the Unreal Editor.
Image: The Visual Studio toolbar
Note: Ensure that your Visual Studio Solution configuration is set to Development Editor.
The toolbar
When you open the project in Unreal Editor, you will see there are additional options on the Unreal Editor toolbar and an additional Editor settings panels. You will use these GDK toolbar and some Editor settings options in later steps of this guide.
> Next: 2: Launch a local deployment with multiple clients
————
2019-08-12 Page updated with editorial review: updated navigation
2019-07-16 Page updated with editorial review