Exemplo n.º 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
 }
Exemplo n.º 2
0
 /// <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
 }
Exemplo n.º 3
0
    /// <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
    }