/// The section between the BEGIN and END generated code can be replaced with the output of running /// the unity-generate.lua script to update it. /* BEGIN GENERATED CODE - unity-generate.lua */ public void RegisterCallback(PoseMatrixCallback callback) { Start(); // make sure the interface is initialized. if (null == poseMatrixCallbacks) { poseMatrixCallbacks = callback; rawPoseMatrixCallback = new OSVR.ClientKit.PoseCallback(PoseMatrixCb); iface.registerCallback(rawPoseMatrixCallback, System.IntPtr.Zero); } else { poseMatrixCallbacks += callback; } }