Creator script binding controls in the scene

1. Mount the script to the node

2. Declare variables in the script file, and then you can see the variables to be bound in the editor

3. Bind the node to be bound to the variable [just drag the node to the variable to be bound]

4. After the binding is successful, the code can control the corresponding control

Guess you like

Origin blog.csdn.net/auccy/article/details/128686738