You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the same script for multiple scenes, after switching scenes. Send a signal in a new scene, and the data returned after receiving the signal is the data in the previous scene.
202310151811.mp4
Steps to reproduce
Start the game, click Next to switch scenes, click the mailbox to trigger the signal
Receive the signal from the mailbox. The flag variable is the value in the previous scenario.
My English is not very good. There may be errors in the description. Please check the dmeo file, which contains a minimum test version.
Signals connected with += are not automatically disconnected when the node is freed. This is a bug and has already been reported in #70414. As a workaround you can use _ExitTree to disconnect the signal:
Godot version
Godot v4.2-beta1
System information
Win11
Issue description
Use the same script for multiple scenes, after switching scenes. Send a signal in a new scene, and the data returned after receiving the signal is the data in the previous scene.
202310151811.mp4
Steps to reproduce
My English is not very good. There may be errors in the description. Please check the dmeo file, which contains a minimum test version.
Minimal reproduction project
TestDemo.zip
The text was updated successfully, but these errors were encountered: