Install HCP Unreal
Before you start
- Unreal Engine 5.7 (Win64) installed.
- A C++ Unreal project -
hcp_unreal_pluginrequires a C++ project, since Unreal only compiles plugin code when the host project itself has a C++ target. - HEAT Capture running and reachable from the Unreal workstation.
VRAI distributes HCP Unreal to customers as a built plugin package (produced by the repository’s
own Package-Plugin.ps1, using Unreal’s BuildPlugin packaging step); it is not published as a
GitHub release. The package contains only hcp_unreal_plugin - the runtime plugin, with all of
its generated components already baked in. hcp_codegen_plugin (the editor-only code generator)
is not part of the customer package; it is how VRAI regenerates the runtime plugin’s components
when HEAT ProtoLib changes, and there is nothing for a customer to generate after install.
Install the supplied package
-
Close the Unreal Editor if it is running.
-
Obtain the HCP Unreal plugin package from VRAI for the
hcp-unrealversion you are deploying. -
Copy the packaged
hcp_unreal_pluginfolder into your project’sPlugins/directory (create the directory if it doesn’t exist):YourProject/ ├── Plugins/ │ └── hcp_unreal_plugin/ └── YourProject.uproject -
Open
YourProject.uprojectin a text editor and add the plugin to itsPluginsarray:"Plugins": [ { "Name": "hcp_unreal_plugin", "Enabled": true } ] -
Right-click
YourProject.uprojectand select Generate Visual Studio project files, then open the project in Unreal Editor. -
Configure the server hostname and port - see Configure.
Verify the install
-
Press Play in the editor.
-
Open Window → Developer Tools → Output Log and filter for
LogHEATCapture. -
Call
StartSession()(see Data produced for how). With HEAT Capture running and a user signed in, confirm you see:HEAT Capture subsystem initialized (target <hostname>:<port>) Started a new HEAT Capture session WebSocket connectedStarted a new HEAT Capture sessionmay instead readAdopted existing HEAT Capture sessionif one was already active - both are success.
Both lines only appear after StartSession() succeeds - the WebSocket no longer connects
independently at level start. If you see neither, check
Troubleshooting; a HEAT Capture instance that is unreachable
or has no signed-in user produces repeated retry log lines instead, not a single failure.
Build from source
Only needed for development against hcp-unreal itself, not for deploying the VRAI-supplied
package above. Building from source requires both plugins - hcp_codegen_plugin is what
produces the runtime plugin’s generated components.
-
Copy both
hcp_unreal_pluginandhcp_codegen_plugininto your project’sPlugins/directory, and add both to the.uprojectfile’sPluginsarray. -
Right-click the
.uprojectfile and select Generate Visual Studio project files. -
In Visual Studio, build the solution (Build → Rebuild Solution).
-
Open the project in Unreal Editor - it compiles the plugins on first launch.
Uninstall
Remove the hcp_unreal_plugin folder (and hcp_codegen_plugin, if present) from the project’s
Plugins/ directory, and remove their entries from the .uproject file’s Plugins array. No
credentials or session data are stored outside the plugin folder itself; settings live in the
project’s own Config/DefaultGame.ini, under the [/Script/hcp_unreal_plugin.HEATSettings]
section.