Step 1: Configure Actor groups
In this tutorial, you set up the
CrashBot_Gym map to have two Actor groups.
- Open the Example project in the Unreal Editor.
- Go to the SpatialOS Runtime Settings panel.
Apart from the default Actor group, set up the following Actor groups for offloading, as is shown in the following screenshot:
AIActor group, which is owned by the by the
AIWorker. Any Actors added to this group have their authority assigned to
CrashBotActor group, which is owned by the
CrashBotWorker. Any Actors added to this group have their authority assigned to
Note: Any actors not listed in An actor group have their authority assigned to the default server-worker type. In the Example Project, the default server-worker is called
Actor classes added for each Actor group
Step 2: Configure launch configuration
- In the Unreal Editor, go to the SpatialOS Editor Settings panel.
- In the
Server Workerssection, in addition to the default
UnrealWorkerserver-worker type, add the
CrashBotWorkerserver-worker types, as is shown in the following screenshot.
- In the
Instances to launch in editorsetting, enter
1for all these server-worker types so that only one instance of each server-worker type is launched when you start a PIE session.
Launch configuration for each server-worker type
Step 3: Configure the worker type
If there are no server-worker configuration for any of the server-worker types listed in the launch configuration settings, the Unreal GDK generates a new worker config for the worker based on a default server-worker configuration template.
In the Example Project, the configuration files are automatically created for the
AIWorker and the
Step 4: Enable offloading
- In the Unreal Editor, go to the SpatialOS Runtime Settings panel.
- In the
Offloadingsection, ensure that the
Enable Offloadingcheck box is selected.
> Next: 2: Make gameplay changes
2019-07-30 Page added as limited editorial review