// Update is called once per frame void Update() { // Set time for the plugin ClibrationInterface.SetTime(Time.timeSinceLevelLoad); // Issue a plugin event with arbitrary integer identifier. // The plugin can distinguish between different // things it needs to do based on this ID. // For our simple plugin, it does not matter which ID we pass here. GL.IssuePluginEvent(ClibrationInterface.GetMainRenderFunctionIntPtr(), 1); }
// Start is called before the first frame update void Start() { // Update structure AARCameraProjectorRig.Instance.UpdateStructureComponents( HololensSensorList, ProjectorList, ServoList, ProjectorNames, ServoNames); // Signal Plugin ClibrationInterface.SignalUnityStart(); StartCoroutine("CallPluginAtEndOfFrames"); }