How to make something occur in all scenes and also how to disable script in a specific scene?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By

Basically, the player can change their name in the character creation. It consists of a confirm dialog and a text edit in the dialog and when the text edit is changed, the name appears above the instanced character scene. But when I open the game.tscn the character doesn’t have the name. Anyone know whats wrong?

:bust_in_silhouette: Reply From: Asthmar

By using a singleton and making the name a global variable. More on that here.

Do you know how I would connect the confirm dialog to the singleton? | 2020-10-19 17:10