// Use this for initialization void Start() { // Make sure that the render window continues to render when the game window does not have focus Application.runInBackground = true; CommandBuffer cmb = new CommandBuffer(); cmb.name = "WebRTC Encoding"; cmb.IssuePluginEvent(GetRenderEventFunc(), 0); Camera.main.AddCommandBuffer(CameraEvent.AfterEverything, cmb); FPtr cb = new FPtr(OnInputData); LogPtr logCb = new LogPtr(OnLog); SetInputDataCallback(cb); SetLogCallback(logCb); }
public static extern void SetLogCallback(LogPtr cb);