How to set Button Variables without code
-
How would I set a variable to a button without using the Code Editor? I already have the buttons made and don't want to make new ones.
-
@11235813 I don't quite understand what you're wanting to do, can you give more detail?
-
@d-healey Y'know how some times you have to write a script that says:
const var button1 = Content.addButton("button1", 0, 0);
I'm trying to do the "const var" part without using the code editor.
-
You're trying to write a script without using the script editor?
-
Oh I think I understand. You need to use getComponent.
const myButton = Content.getComponent("myButton");
-
@d-healey thx