Data transfer between scenarios

I’m trying to transfer data between scenes. For now, I’m using a file placed in user:// as a transit for the data. However, I think there should be a better way, but I can’t find it in the documentation. So, how to complete the transmission of data signals without instantiating the scene.

1 Like

The easy way is creating a singleton where you place all the variables, signals or other stuff you need to transfer between scenes in your game.

It is added to the root of the tree and is always available.

If you don’t need it instantiated you can create a static class and access its values from anywhere without instantiating.

2 Likes

Thank you very much, I solved, singleton automatic loading is really very useful