SDK setup (on application start)
SDK is configured automatically by enabling Smartlook Plugin in Plugin settings:
![Unreal Engine - Enable plugin 2181](https://files.readme.io/ea64116-Unreal_Engine_-_Enable_plugin.png)
Setup configuration
You can start recording automatically by ticking the Start Recording
option in Smartlook plugin settings. You can also provide the desired framerate:
![Unreal Engine - Plugin settings 2182](https://files.readme.io/ec8adec-Unreal_Engine_-_Plugin_settings.png)
Start and stop recording
Recording can be started or stopped at any time, the only requirement is that the SDK is set up.
Blueprint:
![Unreal Engine - Blueprint for StartSession and EndSession 762](https://files.readme.io/44fc6f7-Unreal_Engine_-_Blueprint_for_StartSession_and_EndSession.png)
#include "Runtime/Analytics/Analytics/Public/Analytics.h"
#include "Runtime/Analytics/Analytics/Public/Interfaces/IAnalyticsProvider.h"
FAnalytics::Get().GetDefaultConfiguredProvider()->StartSession());
FAnalytics::Get().GetDefaultConfiguredProvider()->EndSession());
EndSession()
doesn't need to be called on application closure. Recording is stopped automatically.