Пример #1
0
    // 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);
    }
Пример #2
0
 public static extern void SetLogCallback(LogPtr cb);