Collection of examples developed using the Genvid SDK for Unity.
Make sure to have the Genvid SDK installed. Clone or download the repository, and open a command prompt in the XX - EXAMPLE\GenvidServices
folder. Run the following commands to start the Genvid service:
genvid-bastion install --bastionid localbastion --loadconfig
genvid-sdk setup
genvid-sdk clean-config
genvid-sdk load-config-sdk
py .\genvid-project.py load
Once the previous commands have completed, open a command prompt in the XX - EXAMPLE\GenvidServices\web
folder. Run the following command to build the web view:
py build.py all
Now open the project in Unity. Open the Genvid window from the "Windows" menu in the top bar. Give it a second to load and then select your "local" Genvid cluster from the dropdown. To run the project, hit the "On" button besides the "services" and "web" jobs. Wait for them to initialize, and then press the Play button in the Unity Editor to start the game. Make sure the "Game" view resolution is set to 1280x720 for the stream to look correctly. Press the "Genvid Tanks Demo Open Link" to open the web view in your browser.
Basic examples that contains a rotating cube. Demostrates how to set up a scene and send data about the cube to a Genvid stream via data streams, to then display them in web view.
Example of how to add interaction to the web view based on information sent from Unity. The sample displays a map and sends a data stream with the bounding box corresponding to each location. The web view user can click on one of these locations to see detailed information.
Example showing how to use annotations and notifications and illustrates the difference between them. Check out the corresponding readme for the explanation.
Basic example that shows how to send player input from the web view to the game via events. Clicking on the web view will plant a tree on the clicked location.
Example that shows how to send player input from the web view to the game via events and commands.
Complex example that shows a chess game against an AI where players can vote for the moves White will execute. Built upon SebLague's Chess AI for Unity.