Looking for the Unity Desktop Application SDK? Request access
here.
Demo
https://unity-example.hyperbeam.comSDK
https://github.com/hyperbeam/packages/tree/master/unity-webgl-sdkExample
https://github.com/hyperbeam/unity-exampleRequired Setup
In order to setup the WebGL SDK you will need a custom WebGL Template in unity. We provide an example one in our API download underAssets/WebGLTemplates/HyperbeamTemplate you can either modify that or copy the steps below into your own template.
Custom Template
Inindex.html add the folling section.
JavaScript
createUnityInstance make sure to set the Unity Instance to a variable called unityInstance
JavaScript
Starting up the Hyperbeam Stream
To start the hyperbeam stream in untiy attach theHyperbeamController script to an object. Then call
HyperbeamController.StartHyperbeamStream(embedUrl) to learn how to display the stream please look at HyperbeamVideoSource