In-Game Screen Capture
Last updated
Last updated
The Screen Capture component allows you or your player can create screen shots during game play. You can select a key for Screen Capture, and a second key if you want to use an automated repeating capture.
First, either create an empty gameobject and add the screen capture script, or simply drag the included prefab into you scene. This asset will take a screen shot in low res (formats are png, jpg, or tga), and will be saved with a unique name prefixed with what ever you add the the Prefix slot. Images will be saved in the Game Folder, or in the Persistant data folder on a mobile.
If you select High Resolution, the Images are in hiRes (many times larger) but will add to the overhead and may cause a delay in Game Play. The High Res feature should normally be used for taking promotion images and not for your player to use.
However, when using High Resolution, the images can be taken from different cameras other than the Player Camera, providing a unique perspective on screen shots. Simply add another Camera to your scene and drag it into the appropriate slot.
Other settings are as follows:
Delay Start - this setting is from zero to 10 seconds and adds a delay from when the trigger is pressed until the screen capture is taken.
Repeat Every - this allows you to repeat the screen capture. The setting is from zero (do not repeat), to repeat once every 60 seconds.
Log Data - select this check box log image data and save name to the system log.
Display Canvas - this setting will display a UI Canvas when the screen shot has completed. You can use the provided canvas, or create your own.
If you use the Repeat feature, you must cancel the repeat or it will continue forever. To do this, simply define a key and drag the prefab or your gameobject with screencapture script, into the corresponding slot.
Screen Captures also work on Mobile, see the Mobile Example included in this Module.