Hello, i have two scenes, and two scripts. And i need from scene1 SendMessge to function in script in scene2. Please help…
Part of the script in scene1
I don’t think it’s possible to execute code in a scene thats not loadad… because… it’s not loaded.
But you can save values from your current scene to be carried over once the next scene is loaded.
I have been told that static variables are consistent through out the entire game, from level to level. So… if this is true, why not just set a var? And on the new scene loaded, if var is true (var was set in the last scene) that x will happen?