Unity:处理相机受限的情况
问题描述:
我使用WebCamTexture将Android相机输出显示为背景。代码看起来像这样:Unity:处理相机受限的情况
image = GetComponent<RawImage>();
cam = new WebCamTexture (Screen.width, Screen.height);
image.texture = cam;
它的工作原理,但是当我删除相机的权限,它显示黑屏。我怎样才能处理这个案例,并展示我的照片呢?