UnityEvent OnHyperbeamStart
Will notify any registered handlers when the Instance property is usable. It is eventually called by StartHyperbeamStream usually before OnTextureReady is invoked.
Action<Texture2D> OnTextureReady
Will notify any registered handlers when the Hyperbeam Stream’s texture is ready. It is eventually called after StartHyperbeamStream
UnityEvent OnControlReturned
Will notify any registered handlers when control is returned to unity after being handed off by PassControlToBrowser
void StartHyperbeamStream(string embedUrl)
Bootstraps the hyperbeam browser. This will hand off execution the web browsers Javascript runtime in order to setup the stream.
Method Parameters
void PassControlToBrowser(string closeKey, bool ctrl, bool meta, bool alt, bool shift)
Stops unity from intercepting keyboard events and will start sending them to the virtual browser.
It will listen for the closeKey along with any modifiers and when pressed will return control back to unity, which can be detected via OnControlReturned
Method Parameters
void TakeBackControlFromBrowser()
Forcibly takes control back from the attached Hyperbeam Instance if PassControlToBrowser was called on it.
It will unregister any event handlers currently registered.