Continuous Snapshot
![combine](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/continuous_snapshot-c3c4fa885dcc90a906fc6af930e1f5e8.png)
Continuous Snapshot takes a set number of continuous snapshots and saves the textures to an array. When the max count is reached, snapshots saved first will be replaced by more recent ones.
Input
Name | Data Type | Description |
---|---|---|
Start | Exec | Start capturing snapshots. |
Stop | Exec | Stop capturing snapshots. |
Clear All | Exec | Clear all captured snapshots. |
Camera Texture | Render Texture | The camera to pull from. |
Max Count | Number | The number of textures saved in the array. |
Resolution Ratio | Number | The resolution of the output texture. |
Output
Name | Data Type | Description |
---|---|---|
Exit | Exec | Execute the next node. |
Snapshot Textures | Array<Texture2D> | The array that saves all the captured textures. 0 represents the most-recently captured snapshot. |
Example
![continuous snapshot example](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/continuous_snapshot_example-29792ba24cb2299ed86f33260020391c.gif)
In this example, the canvas is divided into four images, each being set by a different item of a Continuous Snapshot array. A camera feed has been applied to an unlit plane which is being rendered by the CameraFeed camera.
The render texture is then fed into a Continuous Snapshot node and four different items are pulled from the array to create the above delayed effect.
![continuous snapshot node](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/continuous_snapshot_node-5f0aa333dbdd2f5b2eb55e3bd6003a1d.png)