12 public static FocusMode
mFocusMode = FocusMode.AutoFocus;
56 RenderListenerUtility.onPause += OnPause;
57 RenderListenerUtility.onQuit += OnRelease;
74 if (Input.GetMouseButtonDown(0))
77 Debug.Log(
"current double clicked is enter !");
126#elif UNITY_ANDROID|| UNITY_IOS
140#elif UNITY_ANDROID|| UNITY_IOS
158 resolutionMode.Dimensions(out preWidth, out preHeight);
234 private void OnPause(
bool isPaused)
239 private void OnRelease()
251 return EasyWebCamBase.isRunning;
257 if (count == 1) time = Time.time;
258 if (2 == count && Time.time - time <= 0.5f)
264 if (Time.time - time > 0.5f) count = 0;
270 if (Application.platform != RuntimePlatform.Android)
return true;
static bool IsPermissionGranted(string permissionName)
static void TakePhoto()
Takes the photo.
static string CAMERA_PERMISSION
static EasyWebCamUpdateDelegate OnPreviewUpdate
static void setTorchMode(TorchMode paramode)
Sets the torch mode.
static void Play()
Play this instance.
ResolutionMode mCamResolution
static void setFlashMode(FlashMode paramode)
Sets the flash mode.
static FocusMode mFocusMode
static void setFocusMode(FocusMode paramode)
Sets the focus mode.
static IEasyWebCam easyWebCamInterface
static EasyWebCamStopedDelegate OnPreviewStoped
static bool checkPermissions()
static EasyWebCamStartedDelegate OnPreviewStart
static void Stop()
Stop this instance.
static void setPreviewResolution(ResolutionMode resolutionMode)
Sets the preview resolution.
static void SwitchCamera(int mode)
static Texture2D WebCamPreview