LIFT
  • About LIFT
    • Introduction
    • Roadmap
  • LIFT Network
    • LIFTChain
    • DataGrid
  • LIFT Ecosystem
    • LIFT AI Studio
    • AI Machines
    • DataBridge
    • LIFT Token
    • Nodes
      • Installing Nodes
  • For Developers
    • API Reference
      • AI Compute API
        • Image Processing Request
        • Query Extracted Data
      • Data Storage API
    • SDK Reference
      • Unreal Engine SDK
      • Unity SDK
      • Oracle SDK
    • Network Reference
      • Addresses
      • RPC Configuration
    • dApp Reference
      • Set up your wallet
      • Deploy your dApp
      • Verify your dApp
  • Resources
    • Official Links
      • Website
      • Twitter / X
      • Discord
      • Team Accounts
      • Telegram
      • Farcaster
      • GitHub
      • Brand Kit
    • Support
Powered by GitBook
On this page
  • Installation
  • Setup
  • Controlling plugin from the Editor
  • Controlling plugin from the code
  1. For Developers
  2. SDK Reference

Unity SDK

PreviousUnreal Engine SDKNextOracle SDK

Last updated 6 months ago

Installation

Add package from git URL:

Setup

  1. Open your start scene in the Unity editor

  2. 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.

  3. 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

https://github.com/PlayFi-Labs/unity-plugin.git