1.Unity中Create出的Plane默認(rèn)為10米。
2.Unity中Create出的Cube默認(rèn)長(zhǎng)寬高均為1米。
3.正交相機(jī)的Size為1控制的是高 為2米.
如果想控制一個(gè)Cube鋪滿屏幕則計(jì)算如下:
height = 2*Camera.main.orthographicSize;
width = height*Camera.main.aspect;
iOS上:后置攝像頭
設(shè)置Orientation 為 Landscape Left ,
WebCamTexture.videoRotationAngle = 0;
WebCamTexture.videoVerticallyMirrored = true;
設(shè)置Orientation為Portrait,
WebCamTexture.videoRotationAngle = 90;
WebCamTexture.videoVerticallyMirrored = true;
設(shè)置Orientation為L(zhǎng)andscapre Right,
WebCamTexture.videoRotationAngle = 180;
WebCamTexture.videoVerticallyMirrored = true;
設(shè)置為AutoRotation ,如果啟動(dòng)時(shí)設(shè)備平方,在啟動(dòng)后跟上述結(jié)果不一致,如果啟動(dòng)時(shí)設(shè)備非平方,則跟上面結(jié)果一致。