Set Enabled
![set enabled](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/set_enabled-979dfcf89f8fbccc3e8467cb71aaeaa4.png)
Use Set Enabled to set or disable a component. Set Enabled is in the Utility category.
Input
Name | Data Type | Description |
---|---|---|
Enter | Exec | The input execution that triggers this node. |
Component | Component | The component to be enabled or disabled. |
Enabled On | Boolean | True for enabling the component, false for disabling the component. |
Output
Name | Data Type | Description |
---|---|---|
Exit | Exec | Execute the next node. |
Enabled | Boolean | The status of the component. True for enabled, false for disabled. |
Example
![set enabled example](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/set_enabled_example-e625e58fb6d37ba92ff804128eb8650b.gif)
This example uses mouth open and close to enable/disable the blue Directional Light component.
![set enabled node](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/set_enabled_node-c346bd1860d8aa1a74566acf7ff42521.png)