How can I share data between two windows

Hi, so I wonder if it’s possible to create two separate Screens(windows) and have one variable like String shared between them.
In example I have song name and I want to display it on both screens. Song name is a signle variable that can be shared and after change it will be shown with new value/string on both screens.

Sure - you can just create a variable in the variable pane of the logic editor and it will be shared across screens:
image

You can then drag the variable name into the logic editor and create a Setter in each screen that wants to change it. Creating numerous onChange nodes in the same way will allow you to look for changes in different parts of your project.

Hope that helps.

1 Like