天天看點

解決unity中切換場景後調取的攝像頭畫面變黑屏的問題

解決方法:在調取攝像頭的腳本中,建立的-

WebCamTexture camTexture;
           

應在前面加“static”,變成靜态變量,即-

static WebCamTexture camTexture;
           

繼續閱讀