Exemple #1
0
 /// <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
 }
Exemple #2
0
 /// <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
 }
Exemple #3
0
    /// <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
    }