/// <summary> /// Gets the size of the webcam /// </summary> /// <returns>The size.</returns> public Vector2 getSize() { #if UNITY_ANDROID && !UNITY_EDITOR if (isUseEasyWebCam) { return(new Vector2(EasyWebCam.Width(), EasyWebCam.Height())); } else { return(new Vector2(webcamera.width, webcamera.height)); } #else return(new Vector2(webcamera.width, webcamera.height)); #endif }
/// <summary> /// get the width of the camera /// </summary> public int Width() { #if UNITY_ANDROID && !UNITY_EDITOR if (isUseEasyWebCam) { return(EasyWebCam.Width()); } else { return(webcamera.width); } #else return(webcamera.width); #endif }
/// <summary> /// get the width of the camera /// </summary> public int Width() { #if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR if(isUseEasyWebCam) { return EasyWebCam.Width(); } else { return webcamera.width; } #else return webcamera.width; #endif }