我目前正在使用WebCamTexture类来显示实时摄像头源,直到用户拍摄快照,然后我在我的应用程序中使用所述快照作为纹理。这是我目前使用的代码:privateWebCamTexturecameraTexture;privateTexture2Dsnapshot;publicUITexturewebCamTexture;snapshot=newTexture2D(cameraTexture.width,cameraTexture.height);snapshot.SetPixels(m_CameraTexture.GetPixels());snapshot.Apply();webCam