What does the funtion on_reload do exactly? (SOLVED)

what does the function on reload do

It is called when you reload a script resource while the game is running. You can do stuff like print or reset things, since init() isn’t being called.

thanks

The search functionality of the Learn section on the Defold web page links to one manual discussing the script life cycle functions and then the specific API reference page as well.

2 Likes