Do Once
![do once](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/do_once-5a3b003742085d92b3a618b0c3f2925a.png)
Use Do Once to trigger a node only once if it isn’t reset. Do Once is in the Control category.
Input
Name | Data Type | Description |
---|---|---|
Enter | Exec | Trigger this node to execute. |
Reset | Exec | Reset this node so that it can be executed again. |
Output
Name | Data Type | Description |
---|---|---|
Next | Exec | Trigger the next node. |
Example
![do once example](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/do_once_example-b7b5dc60981dc2cbc8290e8e7948996d.gif)
This example plays the alien animation sequence once every time you tap on the screen.
![do once node](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/do_once_node-709664af69f72df56159c78b56e15438.png)