private void SetTextureId()
        {
            int nativeTextureID = (int)mTexture.GetNativeTexturePtr();

            cameraPreviewHelper.SetTextureID(nativeTextureID, PreTextureWidth, PreTextureHeight);
            textureIdSeted = true;
        }
Example #2
0
 private void Update()
 {
     if (!inited)
     {
         InitTexture();
         inited = true;
     }
     else if (!textureIdSeted && cameraPreviewHelper != null)
     {
         int nativeTextureID = (int)mTexture.GetNativeTexturePtr();
         cameraPreviewHelper.SetTextureID(nativeTextureID, PreTextureWidth, PreTextureHeight);
         textureIdSeted = true;
     }
 }