Skip to content

Scripting API

suisuishou edited this page Aug 10, 2022 · 8 revisions

SuiSuiShou.CIC.Core

Interface

ICameraImageCaptureCore

Interface in SuiSuiShou.CIC.Core

Description

The core interface of CameraImageCapture

Properties

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 Method

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

SuiSuiShou.CIC.Data

Clone this wiki locally