Capture image and output the file with specified camera. This is useful to make some screenshots or transparent textures.
You can import this assets from UnityPackage.
Open window from toolbar "Custom/ImageCaptureTool". Set the parameters & click "Capture" button.
Name | Description |
---|---|
Output Directory | Output directory. |
Base File Name | Output file name. File name will be combined with File Name Index . |
File Name Index | Suffix number. This will be combined after Base File Name . |
Camera | Camera to make capture. If null, Main Camerall will be used. |
Image Width | Output image width. If 0 , current GameView width will be used. |
Image Height | Output image height. If 0 , current GameView height will be used. |
Image Scale | Output image size magnification. |
Clear Background | If enable, output image background will be transparent. |
ImageCaptureTool.cs
has functions to capture image.
If output directory doesn't exist, output will be failed.