Install Rivet CLI

Installation instructions

Initiate project

Run the following in your project’s directory and follow the steps.

rivet init --unreal --install-plugin

Add dependency

Add Rivet to PrivateDependencyModuleNames in your project Source/MyProject/MyProject.Build.cs. For example:

}
PrivateDependencyModuleNames.AddRange(new string[] { "Rivet" });

Update AMyProjectGameMode class

We will update the game mode code to connect player connect & disconnect events to Rivet.

Update the the game MyProjectGameMdoe header & source files to look like the following. Replace MyProject with your project name.

Restart Unreal Engine for the new C++ header to take effect.