1. Mount the script to the node
![](https://img-blog.csdnimg.cn/img_convert/895a484af8a36095df3d7ebefab88ffd.png)
2. Declare variables in the script file, and then you can see the variables to be bound in the editor
![](https://img-blog.csdnimg.cn/img_convert/4ddfd289695ae367b7666713180bf206.png)
3. Bind the node to be bound to the variable [just drag the node to the variable to be bound]
![](https://img-blog.csdnimg.cn/img_convert/0ea4e35a849be4786c9f427bdcd75e71.png)
4. After the binding is successful, the code can control the corresponding control
![](https://img-blog.csdnimg.cn/img_convert/5e41dcdc4444aca03a45329b218354af.png)