Wikitude Unity Expert Edition
|
Controls the configuration and access to the physical camera on the device. If an input plugin is used instead, this script should be removed from the scene. More...
Inherits MonoBehaviour.
Public Member Functions | |
bool | IsFocusModeSupported (CaptureFocusMode focusMode) |
Checks if a focus mode is supported is supported by the current capture device. More... | |
bool | IsExposureModeSupported (CaptureExposureMode exposureMode) |
Checks if an exposure mode is supported by the current capture device. More... | |
bool | IsZoomLevelSupported (float zoomLevel) |
Checks if a zoom level is supported by the current capture device. More... | |
bool | IsFlashModeSupported (CaptureFlashMode flashMode) |
Checks if a flash mode is supported by the current capture device. More... | |
void | FocusAtPointOfInterest (Vector2 pointOfInterest) |
Sets the focus around a point. Should be called again whenever the camera is restarted More... | |
void | ExposeAtPointOfInterest (Vector2 pointOfInterest, CaptureExposureMode exposureMode) |
Sets the exposure level around a point. Should be called again whenever the camera is restarted. More... | |
Public Attributes | |
OnCameraErrorEvent | OnCameraError = new OnCameraErrorEvent() |
Called whenever the device camera encounters an error. More... | |
OnCameraOpenedEvent | OnCameraOpened = new OnCameraOpenedEvent() |
Called whenever the device camera is opened. More... | |
Properties | |
CaptureDevicePosition | DevicePosition [get, set] |
Gets or sets the position of the capture device that is used or should be used. More... | |
CaptureFocusMode | FocusMode [get, set] |
Gets or sets the focus mode that should be used by the current capture device, if supported. More... | |
CaptureExposureMode | ExposureMode [get, set] |
Gets or sets the exposure mode that should be used by the current capture device, if supported. More... | |
float | ManualFocusDistance [set] |
Gets or sets the manual focus distance that should be used. Valid values are between 0 and 1 and only works when the FocusMode is set to Locked and Camera2 API is enabled on Android. Value 0 indicates that the camera should focus as close as possible. More... | |
bool | IsManualFocusAvailable [get] |
Checks if the current device supports manual focus. On Android, if Camera 2 API is not enabled, this will always be false. More... | |
CaptureAutoFocusRestriction | AutoFocusRestriction [get, set] |
Gets or sets the current auto focus range restriction. This option is only available on iOS. More... | |
bool | IsAutoFocusRestrictionSupported [get] |
Checks if auto focus range restriction is supported on the device. More... | |
float | ZoomLevel [get, set] |
Gets or sets the zoom level that should be used. More... | |
float | MaxZoomLevel [get] |
Gets the maximum zoom level supported by the current capture device. More... | |
CaptureFlashMode | FlashMode [get, set] |
Gets or sets the current flash mode that should be used by the capture device. More... | |
CaptureDeviceResolution | DesiredCameraResolution [get, set] |
Gets or sets the desired resolution of the camera capture device. The change will take place the next time a camera is started. More... | |
CaptureDeviceFramerate | DesiredCameraFramerate [get, set] |
Gets or sets the desired framerate of the camera capture device. The change will take place the next time a camera is started. More... | |
bool | EnableCamera2 [get, set] |
Enables Camera 2 API on Android, required if the Focus Distance needs to be set manually. More... | |
Camera2SupportLevel | Camera2SupportLevel [get, set] |
Sets the Camera 2 API's minimum support level. The Camera 2 API will not be used if the Android device doesn't support the chosen value. More... | |
bool | IsFocusAtPointOfInterestSupported [get] |
Checks if FocusAtPointOfInterest is supported by the current capture device. More... | |
bool | IsExposeAtPointOfInterestSupported [get] |
Checks if FocusAtPointOfInterest is supported by the current capture device. More... | |
Controls the configuration and access to the physical camera on the device. If an input plugin is used instead, this script should be removed from the scene.
|
inline |
Sets the exposure level around a point. Should be called again whenever the camera is restarted.
pointOfInterest | The point of interest around which the exposure should be taken. The point is in screen space, as would be returned by Input.mousePosition, for example. |
exposureMode | The exposure mode that should be used around the point. |
|
inline |
Sets the focus around a point. Should be called again whenever the camera is restarted
pointOfInterest | The point of interest where the camera should focus. The point is in screen space, as would be returned by Input.mousePosition, for example. |
|
inline |
Checks if an exposure mode is supported by the current capture device.
|
inline |
Checks if a flash mode is supported by the current capture device.
|
inline |
Checks if a focus mode is supported is supported by the current capture device.
|
inline |
Checks if a zoom level is supported by the current capture device.
OnCameraErrorEvent Wikitude.DeviceCamera.OnCameraError = new OnCameraErrorEvent() |
Called whenever the device camera encounters an error.
OnCameraOpenedEvent Wikitude.DeviceCamera.OnCameraOpened = new OnCameraOpenedEvent() |
Called whenever the device camera is opened.
|
getset |
Gets or sets the current auto focus range restriction. This option is only available on iOS.
|
getset |
Sets the Camera 2 API's minimum support level. The Camera 2 API will not be used if the Android device doesn't support the chosen value.
|
getset |
Gets or sets the desired framerate of the camera capture device. The change will take place the next time a camera is started.
|
getset |
Gets or sets the desired resolution of the camera capture device. The change will take place the next time a camera is started.
|
getset |
Gets or sets the position of the capture device that is used or should be used.
|
getset |
Enables Camera 2 API on Android, required if the Focus Distance needs to be set manually.
|
getset |
Gets or sets the exposure mode that should be used by the current capture device, if supported.
|
getset |
Gets or sets the current flash mode that should be used by the capture device.
|
getset |
Gets or sets the focus mode that should be used by the current capture device, if supported.
|
get |
Checks if auto focus range restriction is supported on the device.
|
get |
Checks if FocusAtPointOfInterest is supported by the current capture device.
|
get |
Checks if FocusAtPointOfInterest is supported by the current capture device.
|
get |
Checks if the current device supports manual focus. On Android, if Camera 2 API is not enabled, this will always be false.
|
set |
Gets or sets the manual focus distance that should be used. Valid values are between 0 and 1 and only works when the FocusMode is set to Locked and Camera2 API is enabled on Android. Value 0 indicates that the camera should focus as close as possible.
|
get |
Gets the maximum zoom level supported by the current capture device.
|
getset |
Gets or sets the zoom level that should be used.