Unity SDK
Installation
Add package from git URL: https://github.com/PlayFi-Labs/unity-plugin.git
Setup
Open your start scene in the Unity editor
Right-click on the Hierarchy view and press “Add LIFTScreenshotsCollector”. Alternatively, you can drag “LIFTScreenshotsCollector” prefab into the start scene Hierarchy view. The game object “LIFTScreenshotsCollector” will appear in the Hierarchy view.
In the “ScreenshotsCollector” script need to set the “ModelId” parameter for your project
Controlling plugin from the Editor
Select the game object “LIFTScreenshotsCollector” in the Hierarchy view
“IsEnabled” parameter turns on/off automatic screenshots
“ScreenshotsTimeoutInSec” parameter adjusts the frequency of the automatic screenshots
“IsDebugMode” parameter turns on/off logging of debugging information
Controlling plugin from the code
“LIFT.ScreenshotsCollector.Instance.IsEnabled” is used to set/get turn on/off automatic screenshots
“LIFT.ScreenshotsCollector.Instance.ScreenshotTimeoutInSec” is used to set/get the frequency of the automatic screenshots
“LIFT.ScreenshotsCollector.Instance.PayloadJson” is used to set/get JSON payload that will be sent with the next screenshot
“LIFT.ScreenshotsCollector.Instance.IsMakingScreenshot” is used to check if the screenshot is currently in progress
“LIFT.ScreenshotsCollector.Instance.ModelId” is used to set/get ModelId parameter
“LIFT.ScreenshotsCollector.Instance.ProcessScreenshot” is used to make screenshots manually
Last updated