// Update is called once per frame
        void OnRenderObject()
        {
            if (!EnablePreView)
            {
                return;
            }

            bool succ = false;

            if (textureIdSeted && cameraPreviewHelper != null)
            {
                succ = cameraPreviewHelper.CopyTexture();
                // refresh unity gl state
                if (succ)
                {
                    GL.InvalidateState();
                }
            }

            bool updatePreViewTexture = EnablePreView && holoeverService != null && holoeverService.IsMarkerRecognizeRunning && inited;

            if (postRenderObject == null)
            {
                postRenderObject = GameObject.Find("NxrPostRender").GetComponent <NxrPostRender>();
            }
            else if (succ)
            {
                // defaultTexture;
                postRenderObject.PreviewTexture = updatePreViewTexture ? mTexture : null;
            }
        }
        // Update is called once per frame
        void OnRenderObject()
        {
            if (cameraPreviewHelper != null)
            {
                bool succ = cameraPreviewHelper.CopyTexture();
                // refresh unity gl state
                if (succ)
                {
                    GL.InvalidateState();
                }

                // recoginize
                if (succ && !holoeverService.IsCameraPreviewing())
                {
                    // camera preview stopped !!!
                    Debug.LogError("IsCameraPreviewing false!!!");
                    succ = false;
                }

                if (succ && !updateMaterialTexture)
                {
                    material.mainTexture = mTexture;

                    updateMaterialTexture = true;
                }
                else if (!succ)
                {
                    material.mainTexture = defaultTexture;
                    // material.mainTextureScale = new Vector2(1, 1);
                    updateMaterialTexture = false;
                }


                //if (succ && holoeverService.GetCurrentCameraId() == CAMERA_ID.BACK)
                //{
                // material.mainTextureScale = new Vector2(-1, 1);
                //}

                if (AutoCameraFocus && succ && !isCamersFocusRunning)
                {
                    StartAutoCameraFocus();
                }

                if (textureIdSeted && !succ && isCamersFocusRunning)
                {
                    StoptAutoCameraFocus();
                }
            }
        }