示例#1
0
    /// <summary>
    /// Initilization of video capture and tracking sequentially. This is an asynchronous
    /// function, in order not to block the Unity UI thread. [internal use]
    /// </summary>
    private async void InitAsync()
    {
        Debug.Log(TAG + ": Init() starts");
        bool ret = await videoManager.InitializeMediaCaptureAsyncTask();

        if (!ret)
        {
            Debug.Log(TAG + ": Init() fails");
            return;
        }
        ret = await InitializeControllerAsyncTask();

        if (!ret)
        {
            Debug.Log(TAG + ": Init() fails");
            return;
        }
        StartFrameReaderAsync();
    }