-
I am trying to make a simple main menu. I would like to ommit the copy-pasting of button node-children code so I wanted to put it into a function as in the Buttonn example. the button function:
Main menu setup:
and the button system:
When the Is there a proper way to spawn buttons through function, or am I doomed to copy-pasting? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Your exit button is missing the component |
Beta Was this translation helpful? Give feedback.
-
Ok so just for anybody with a similral problem, after some hours of suffering (I am a beginner) I managed to reduce the one button to 3 lines :)
|
Beta Was this translation helpful? Give feedback.
Ok so just for anybody with a similral problem, after some hours of suffering (I am a beginner) I managed to reduce the one button to 3 lines :)
Here is the code: