-
Notifications
You must be signed in to change notification settings - Fork 2
Scripting API
suisuishou edited this page Aug 10, 2022
·
8 revisions
Interface in SuiSuiShou.CIC.Core
The core interface of CameraImageCapture
Propertiy Name | Type | Permission | Description |
---|---|---|---|
ImageResolution | Vector2Int | Get, Set | The image resolution for capturing |
WriteType | WriteFileType(Enum) | Get, Set | Write type of Capture: MainThread, Async |
ImageFormat | ImageFormat(Enum) | Get, Set | Image file format: jpg, png, tga |
IsLogCap | bool | Get, Set | Is log capinfor during image capturing |
IsImageSerial | bool | Get, Set | Is image file name serialized |
IsOverrideCameraResolution | bool | Get, Set | When set to False, ImageResolution will follow the camera pixel size |
SaveFolderPath | string | Get, Set | Target folder for file write |
FileName | string | Get, Set | Image file name |
Public Name | Paramters | Return | Description |
---|---|---|---|
CaptureAndSaveImage | void | void | Capture and write image file to the target path |
CaptureImage | Camera camera, Vector2Int resolution, int depth | Texture2D | Get the camera texture2d asset |