天天看点

解决unity中切换场景后调取的摄像头画面变黑屏的问题

解决方法:在调取摄像头的脚本中,创建的-

WebCamTexture camTexture;
           

应在前面加“static”,变成静态变量,即-

static WebCamTexture camTexture;
           

继续阅读