Genvid Unity Editor Package

The engine-integration/unity/genvid_editor.unitypackage adds a new window to the Unity editor. This window lets you to access the same set of functionalities as Cluster UI and Bastion UI.

Note

The editor package adds optional functionality to the Unity editor and isn’t required for integrating the Genvid SDK.

Package Contents

Genvid/Editor/Plugins/GenvidRESTCSharp.dll

This is a wrapper around our Toolbox REST API which allows control of the Genvid Stack from the Unity Editor. It depends on two external third party libraries: RESTCSharp Library and Newtonsoft JSON.Net Library, also included in that same folder.

We use version 8.0 of the Newtonsoft library, so it can be replaced with the JSON.Net for Unity assets.

Genvid/Editor/Scripts/GenvidWindow.cs
This file contains the code behind the Genvid editor window. It allows you to interact with the different clusters managed by your bastion.
Genvid/Editor/Ressources/Textures/*.png
These are textures used for the Genvid Window UI.

Building the Package

The package source is available under /engine-integration/unity/editor. You can use the package.py script to build the full Unity package by using the option “editor”. A pre built asset package is available here: engine-integration/unity/genvid_editor.unitypackage.

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_editor.unitypackage located in the /engine-integration/unity folder.