FirstLook SDK Setup Guide
The FirstLook SDK is an Unreal Engine plugin that will allow you to interface with FirstLook from your Unreal game. The plugin currently supports Steam login as well as in-game surveys.
The primary access point for the FirstLook SDK is the UFirstLookSubsystem which exposes a number of methods and delegates used to interact with FirstLook.
For this setup guide, we will assume you have an Unreal game project named MyGame.
Prerequisites
Section titled “Prerequisites”Acquire the FirstLookSDK from the admin dashboard.

- Setup your Steam game in FirstLook. See the Steam Integration.
Invite a test player to your playtest with their Steam account linked. See the Inviting Players.
Setting up the FirstLookSDK Plugin in Unreal
Section titled “Setting up the FirstLookSDK Plugin in Unreal”Now that you’ve acquired the FirstLookSDK and set up your game in FirstLook, we can install the plugin into your Unreal project.
Move the
FirstLookSDKplugin toMyGame/Plugins/FirstLookSDK. Create theMyGame/Pluginsdirectory if one does not already exist.Register the
FirstLookSDKplugin in theMyGame.uprojectfile."Plugins": [{"Name": "FirstLookSDK","Enabled": true}]Add the
FirstLookSDKplugin as a dependency in theMyGame.Build.csfile.PrivateDependencyModuleNames.AddRange(new string[] {"FirstLookSDK"});In the Unreal Editor, configure the
FirstLookSDKplugin settings forFirstLookApiURLandFirstLookClientURLunder:Edit > ProjectSettings > Plugins > FirstLook
Alternatively, configure the plugin in the
DefaultGame.inifile:[/Script/FirstLookSDK.FirstLookSDKSettings]FirstLookApiURL="https://api.firstlook.gg"FirstLookClientURL="https://<game-slug>.firstlook.gg"
To find your client URL, check your domain from your FirstLook settings:

Configure
OnlineSubsystemSteamin theDefaultEngine.inifile.[OnlineSubsystem]DefaultPlatformService=Steam[OnlineSubsystemSteam]bEnabled=trueSteamDevAppId=<steam-app-id>Setup Unreal
CommonUI.Follow Step 1 of this guide to set the default
Game Viewport Client ClasstoCommonGameViewportClient.
Testing out FirstLook Steam Login
Section titled “Testing out FirstLook Steam Login”Now that the FirstLookSDK Unreal plugin is properly setup, FirstLook Steam login will work out of the box since it is automatically called during the FirstLook subsystem initialization. There are just a few steps we need to take in order to test the integration locally.
In the Unreal Editor, enable logging for Standalone Game mode
Under
Edit > Editor Preferences, navigate to:Level Editor > Play > Play in Standalone Game > Additional Launch ParametersAdd
-logas a launch parameter

Play as Standalone Game
In the output log, you should see log line indicating a successful login from the
LogFirstLookSDKlog categorye.g.
LogFirstLookSDK: Verbose: Login succeeded.
Testing out In-Game Surveys
Section titled “Testing out In-Game Surveys”Now that you are able to successfully login to FirstLook, you will be able to use the FirstLook subsystem to trigger in-game surveys.
Create a survey with game client distribution enabled. See the Creating a Survey
Setup a trigger for your newly created survey. See the Setting Up Triggers.
Register the survey delegates in Unreal:
UFirstLookSubsystem::OnNewNativeSurveyAvailable:The
WBP_Survey_Screenwidget should be displayed when this delegate is called. This widget can be found under:MyGame/Plugins/FirstLookSDK/Content/UI_Survey/Widgets/WBP_Survey_Screen.uasset
UFirstLookSubsystem::OnNewBrowserSurveyAvailable:Hooked up by default to show a Steam browser overlay using
UFirstLookSubsystem::ActivateSurveyBrowserOverlay
Make a call to
UFirstLookSubsystem::PostEventwith the trigger you created for your survey. If the trigger condition is met, this will trigger one of the delegates that we setup in the previous step depending on the configured survey distribution channel.