public int InitRenderManager()
{
if (_linkDebug)
{
//this will cause a crash when exiting the Unity editor or an application
//only use for debugging purposes, do not leave on for release.
LinkDebug(functionPointer); // Hook our c++ plugin into Unity's console log.
}
//create a client context for RenderManager. This context should not be updated from Unity.
_renderManagerClientContext = new OSVR.ClientKit.ClientContext("com.sensics.rendermanagercontext", 0);
return CreateRenderManager(_renderManagerClientContext);
}