Genvid SDK Unity Package

The engine-integration/unity/genvid_sdk.unitypackage file contains everything necessary to integrate the Genvid SDK into your game.

Package Contents

Genvid/SDK/Plugins/x86/genvid.dll and Genvid/SDK/Plugins/x64/genvid.dll
This is our main native DLL for Windows (32-bit and 64-bit versions). It is required for integrating the Genvid Services.
Genvid/SDK/Plugins/GenvidSDKCSharp.dll
This is the C# wrapper around our Native SDK. It exposes all the same functionalities as genvid.dll and lets you use our SDK through Unity Scripts.
Genvid/SDK/Plugins/x86/GenvidPlugin.dll and Genvid/SDK/Plugins/x64/GenvidPlugin.dll
This is our Unity Native Plugin (32-bit and 64-bit versions) which lets us enable direct access to the graphics device for optimal video capture. It is not mandatory for integrating Genvid, but allows more efficient video transfer to our SDK.
Genvid/SDK/Scripts/ and Genvid/SDK/Prefabs/

These folders contain scripts and prefabs for integrating Genvid more easily. We use them in our cube sample, but they aren’t mandatory. You can replace them in your project.

We describe these prefabs and scripts in more detail in the Genvid SDK Prefabs for Unity section.

Building the Package

The package source is available under /engine-integration/unity. You can use the package.py script to build the full Unity SDK package by using the option “sdk”. But before that, you need to have built the GenvidPlugin.dll To build the GenvidPlugin.dll, you must have the Microsoft C++ Compiler installed. Then you can use the package.py script with the option “plugin”. A pre built asset package is available in that folder under the name genvid_sdk.unitypackage.

Warning

The Unity Installer only installs the C# tools by default. You need to install C++ support separately to build the Unity package.

Installing the Package

For our cube sample in /samples/cube/unity, we use a Python script to install the package for our sample, you can run it with:

py unity.py prepare

You can also manually add the Genvid SDK to your Unity project:

  1. Open your project in the Unity Editor.

  2. Select Assets ‣ Import Package ‣ Custom Package.

  3. Click genvid_sdk.unitypackage located in the /engine-integration/unity folder.