private void SetTextureId() { int nativeTextureID = (int)mTexture.GetNativeTexturePtr(); cameraPreviewHelper.SetTextureID(nativeTextureID, PreTextureWidth, PreTextureHeight); textureIdSeted = true; }
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; } }