/// <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 height of the camera /// </summary> public int Height() { #if UNITY_ANDROID && !UNITY_EDITOR if (isUseEasyWebCam) { return(EasyWebCam.Height()); } else { return(webcamera.height); } #else return(webcamera.height); #endif }
/// <summary> /// get the height of the camera /// </summary> public int Height() { #if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR if(isUseEasyWebCam) { return EasyWebCam.Height(); } else { return webcamera.height; } #else return webcamera.height; #endif }