This class allows to select a connected cameras and resolution. More...
Public Member Functions | |
CameraResolutionSelector (VLDeviceInfo deviceInfo, bool resolutionSelection) | |
string | OnGUI () |
Data Fields | |
int | windowID = 0 |
A unique ID used for the selection window. More... | |
This class allows to select a connected cameras and resolution.
If only one camera is connected, this camera will get selected automatically.
The selection of the resolution is currently only supported for Windows. On other platforms a default resolution will get selected.
This is just an example to show you how a camera selection could be implemented. Please feel free to write you own camera selection.
NOTICE: The camera selection will only work correctly, if the vl-file doesn't specify the "useImageSource" attribute.
int CameraResolutionSelector.windowID = 0 |
A unique ID used for the selection window.
Set this to a unique value, if you also use the GUI.Window or GUILayout.Window functions with the default ID.