I’m new to Defold Engine, so this might be a REEEEAALLY noob question.
I created a button with a simple GUI Script and attached to it.
function init(self) print('button initialized') end
Added this button.gui to a main.gui as a template.
Added the main.gui to the main.collection.
But the print never happens! What I am doing wrong here?
To test if it was working, I put the button.gui directly inside main.collection and it worked. So the issue must be with the main.gui.