- Home /
Question by
loverainstm · Nov 16, 2012 at 12:49 PM ·
ioswebcamtexture
how to use WebcamTexture working well on mobile device
i'm using webcamtexture,it's work well on pc or mac,but on ios,there is a serious bug code like :
Texture2D frameHolder = new Texture2D(32,32);
webcamTexture = new WebCamTexture(selectedWebcamName,requestWidth,requestHeight,webcamFPS);
webcamTexture.Play();
frameHolder.Resize(webcamTexture.width,webcamTexture.height);
Debug.Log("webcam width=" + webcamTexture.width + " height=" + webcamTexture.height + " fps=" + webcamTexture.requestedFPS);
frameHolder.Apply();
i always get the width and height 16 whatever on ipad2,ipad4,iphone4. how to fix this?let's work well on mobile device?
Comment
Your answer
Follow this Question
Related Questions
Webcam texture not rendering on iOs URP 1 Answer
how to get 4:3 non cropped WebCamTexture in iOS 0 Answers
WebCamTexture on iOS 1 Answer